mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
added CTkComboBox
This commit is contained in:
@@ -21,6 +21,5 @@ optionmenu_tk.pack(pady=10, padx=10)
|
||||
|
||||
optionmenu_1 = customtkinter.CTkOptionMenu(app, variable=variable, values=countries, command=select_callback)
|
||||
optionmenu_1.pack(pady=10, padx=10)
|
||||
optionmenu_1.set("te")
|
||||
|
||||
app.mainloop()
|
||||
|
||||
@@ -40,8 +40,13 @@ button_4.pack(padx=20, pady=(10, 20))
|
||||
|
||||
radiobutton_1 = customtkinter.CTkRadioButton(master=app, text="radiobutton_1")
|
||||
radiobutton_1.pack(padx=20, pady=(20, 10))
|
||||
button_5 = customtkinter.CTkButton(master=app, text="Disable/Enable entry_1", command=lambda: change_state(radiobutton_1))
|
||||
button_5 = customtkinter.CTkButton(master=app, text="Disable/Enable radiobutton_1", command=lambda: change_state(radiobutton_1))
|
||||
button_5.pack(padx=20, pady=(10, 20))
|
||||
|
||||
optionmenu_1 = customtkinter.CTkOptionMenu(app, values=["test 1", "test 2"])
|
||||
optionmenu_1.pack(pady=10, padx=10)
|
||||
button_6 = customtkinter.CTkButton(master=app, text="Disable/Enable optionmenu_1", command=lambda: change_state(optionmenu_1))
|
||||
button_6.pack(padx=20, pady=(10, 20))
|
||||
|
||||
|
||||
app.mainloop()
|
||||
|
||||
Reference in New Issue
Block a user