24 lines
496 B
Python
24 lines
496 B
Python
import customtkinter as ctk
|
|
from ui.app import ExerciseDiaryApp
|
|
import sys
|
|
|
|
def main():
|
|
# Set appearance
|
|
ctk.set_appearance_mode("Dark")
|
|
ctk.set_default_color_theme("blue")
|
|
|
|
# Initialize app
|
|
app = ExerciseDiaryApp()
|
|
|
|
try:
|
|
app.mainloop()
|
|
except KeyboardInterrupt:
|
|
print("\nApplication interrupted by user. Exiting...")
|
|
try:
|
|
app.destroy()
|
|
except:
|
|
pass
|
|
sys.exit(0)
|
|
|
|
if __name__ == "__main__":
|
|
main() |