You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
620 B
20 lines
620 B
2 years ago
|
"""
|
||
|
Example Programm das zum Nachschlagen dient
|
||
|
"""
|
||
|
import tkinter
|
||
|
import customtkinter
|
||
|
|
||
|
customtkinter.set_appearance_mode("System") # Modes: system (default), light, dark
|
||
|
customtkinter.set_default_color_theme("blue") # Themes: blue (default), dark-blue, green
|
||
|
|
||
|
app = customtkinter.CTk() # create CTk window like you do with the Tk window
|
||
|
app.geometry("400x240")
|
||
|
|
||
|
def button_function():
|
||
|
print("button pressed")
|
||
|
|
||
|
# Use CTkButton instead of tkinter Button
|
||
|
button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function)
|
||
|
button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)
|
||
|
|
||
|
app.mainloop()
|