added DropdownMenu and CTkOptionMenu

This commit is contained in:
Tom Schimansky
2022-05-25 22:14:38 +02:00
parent e96165d212
commit 91a8687736
9 changed files with 688 additions and 49 deletions

View File

@ -5,7 +5,7 @@ customtkinter.set_appearance_mode("dark") # Modes: "System" (standard), "Dark",
customtkinter.set_default_color_theme("blue") # Themes: "blue" (standard), "green", "dark-blue"
app = customtkinter.CTk() # create CTk window like you do with the Tk window
app.geometry("400x480")
app.geometry("400x540")
app.title("CustomTkinter simple_example.py")
@ -58,4 +58,7 @@ s_var = tkinter.StringVar(value="on")
switch_1 = customtkinter.CTkSwitch(master=frame_1)
switch_1.pack(pady=y_padding, padx=10)
optionmenu_1 = customtkinter.CTkOptionMenu(master=frame_1, values=["option 1", "option 2", "number 42"])
optionmenu_1.pack(pady=y_padding, padx=10)
app.mainloop()