-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (22 loc) · 715 Bytes
/
Copy pathmain.py
File metadata and controls
29 lines (22 loc) · 715 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
import customtkinter as ctk
from PIL import Image, ImageTk
from ui.notes_section import NotesSection
from ui.todo_section import TodoSection
from utils.database import create_tables
class NotesApp:
def __init__(self, root):
self.root = root
self.root.title("MindList")
ctk.set_appearance_mode("light")
ctk.set_default_color_theme("blue")
self.notes_section = NotesSection(root)
self.todo_section = TodoSection(root)
if __name__ == "__main__":
create_tables()
root = ctk.CTk()
root.iconbitmap("assets/icons/mind.ico")
app = NotesApp(root)
root.geometry("900x750")
root.minsize(800, 600)
root.maxsize(800, 600)
root.mainloop()