Adding the Editor and Buttons

In the right frame of our window, we want to place an editorwindow object, which we can place like follows

edit = EditorWindow(rightframe)
edit.pack(fill= BOTH, expand = True)

We are also going to add a button we can use to open an image. Our editorwindow has a chooseImage function attached to it, which allows us to load a picture into it.

button1 = Button(leftframe, text = "Open", command=edit.chooseImage, width = 10)
button1.pack(padx = 3, pady = 3)

After that, the last step we need is to make a button for each of the filters we made in our filters class, and hook them up to each of these buttons.