-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
46 lines (29 loc) · 920 Bytes
/
Copy pathmain.py
File metadata and controls
46 lines (29 loc) · 920 Bytes
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
43
44
45
46
import customtkinter
from MainWindow import MainWindow
from welcome import OpenLabelApp
# Initial customTkinter window setup
class App(customtkinter.CTk):
def __init__(self):
super().__init__()
import tkinter as tk
if tk._default_root is None:
tk._default_root = self
self.geometry("700x800")
self.title("OpenLabel")
def mainTest():
app = App()
app.withdraw()
welcome = OpenLabelApp(app)
app.wait_window(welcome) # Wait for the welcome window to close before showing the main window
"""
mainWindow = MainWindow(app)
app.wait_window(mainWindow) # Wait for the main window to close before showing the welcome window
app.deiconify()
app.mainloop()
"""
app.deiconify()
main_window = MainWindow(app)
main_window.deiconify()
app.mainloop()
if __name__ == '__main__':
mainTest()