Browse Source

app init

master
Eddie 2 years ago
parent
commit
c917abc734
  1. 20
      app.py
  2. 5
      examples/complexExample.py
  3. 4
      examples/example.py

20
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()

5
examples/complexExample.py

@ -1,3 +1,8 @@
"""
Example Programm das zum Nachschlagen dient
"""
import tkinter import tkinter
import tkinter.messagebox import tkinter.messagebox
import customtkinter import customtkinter

4
examples/example.py

@ -1,6 +1,8 @@
""" """
Example Programm das zum Nachschlagen dient Example Programm das zum Nachschlagen dient
""" """
import tkinter import tkinter
import customtkinter import customtkinter
@ -17,4 +19,6 @@ def button_function():
button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function) button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function)
button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER) button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)
app.mainloop() app.mainloop()
Loading…
Cancel
Save