DrawingTraining/main.py

30 lines
552 B
Python
Raw Normal View History

import os
import sys
2024-05-15 09:30:57 +02:00
from tkinter import PhotoImage
import customtkinter
from src.window.app import App
2023-05-20 02:33:19 +02:00
def main():
if getattr(sys, 'frozen', False):
os.chdir(sys._MEIPASS)
customtkinter.set_appearance_mode("system")
customtkinter.set_default_color_theme("dark-blue")
root = customtkinter.CTk()
root.title("Drawing Training!")
root.geometry("300x600")
2024-05-15 09:30:57 +02:00
icon = PhotoImage(file="assets/icons/logo-dt.png")
root.iconphoto(True, icon)
2023-05-20 02:33:19 +02:00
App(root)
2023-05-20 02:33:19 +02:00
root.mainloop()
2023-05-20 02:33:19 +02:00
if __name__ == '__main__':
main()