From c917abc734e54e5fd20e0322e3387bcf05e5e19f Mon Sep 17 00:00:00 2001 From: Eddie Date: Mon, 12 Dec 2022 17:09:21 +0100 Subject: [PATCH] app init --- app.py | 20 ++++++++++++++++++++ examples/complexExample.py | 5 +++++ examples/example.py | 4 ++++ 3 files changed, 29 insertions(+) create mode 100644 app.py diff --git a/app.py b/app.py new file mode 100644 index 0000000..960d909 --- /dev/null +++ b/app.py @@ -0,0 +1,20 @@ +import tkinter +import tkinter.messagebox +import customtkinter + +customtkinter.set_appearance_mode("System") # Modes: "System" (standard), "Dark", "Light" +customtkinter.set_default_color_theme("blue") # Themes: "blue" (standard), "green", "dark-blue" + + +class App(customtkinter.CTk): + def __init__(self): + super().__init__() + + # configure window + self.title("BudgetPy") + self.geometry(f"{1100}x{580}") + + +if __name__ == "__main__": + app = App() + app.mainloop() \ No newline at end of file diff --git a/examples/complexExample.py b/examples/complexExample.py index cdedee0..aa32070 100644 --- a/examples/complexExample.py +++ b/examples/complexExample.py @@ -1,3 +1,8 @@ +""" +Example Programm das zum Nachschlagen dient +""" + + import tkinter import tkinter.messagebox import customtkinter diff --git a/examples/example.py b/examples/example.py index e945e54..89a0517 100644 --- a/examples/example.py +++ b/examples/example.py @@ -1,6 +1,8 @@ """ Example Programm das zum Nachschlagen dient """ + + import tkinter import customtkinter @@ -17,4 +19,6 @@ def button_function(): button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function) button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER) + + app.mainloop() \ No newline at end of file