-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
25 lines (22 loc) · 812 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import tkinter as tk
from tkinter import ttk
from editBar import EditBar
from imageViewer import ImageViewer
class Main(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
self.filename = ""
self.original_image = None
self.processed_image = None
self.is_image_selected = False
self.is_draw_state = False
self.is_crop_state = False
self.filter_frame = None
self.adjust_frame = None
self.title("Image Editor")
self.editbar = EditBar(master=self)
separator1 = ttk.Separator(master=self,orient=tk.HORIZONTAL)
self.image_viewer = ImageViewer(master=self)
self.editbar.pack(pady=10)
separator1.pack(fill=tk.X,padx=20,pady=5)
self.image_viewer.pack(fill=tk.BOTH,padx=20,pady=10,expand=1)