-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.py
42 lines (35 loc) · 1.35 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import tkinter as tk
from tkinter import ttk
from interface import Interface
from InterfaceFunctions import InterfaceFunctions
from pygame import mixer
class Main(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
self.mixer = mixer
self.mixer.init()
self.mixer.music.load("./Sample_Images/Beethoven_9.Senfoni.mp3")
self.mixer.music.set_volume(0.7)
self.mixer.music.play(-1)
self.filename = ""
self.more_imageFilename = ""
self.original_image = None
self.processed_image = None
self.rotating_image = None
self.image_cache = list()
self.more_image = None
self.is_image_selected = False
self.is_draw_state = False
self.is_crop_state = False
self.is_paste_state = False
self.num_rows, self.num_cols = None, None
self.filtering_frame = None
self.adjusting_frame = None
self.edge_detection_frame = None
self.title("Image Editor by Daymenion")
self.interface = Interface(master=self)
separator1 = ttk.Separator(master=self, orient=tk.HORIZONTAL)
self.interface_functions = InterfaceFunctions(master=self)
self.interface.pack(fill=tk.BOTH)
separator1.pack(fill=tk.X, padx=10, pady=5)
self.interface_functions.pack(fill=tk.BOTH, padx=10, pady=10, expand=1)