changed combobox and optionemnu command to only get triggered by manual selection #440

This commit is contained in:
Tom Schimansky
2022-09-15 18:46:24 +02:00
parent 66f9fa2386
commit c16c891115
5 changed files with 8 additions and 9 deletions

View File

@ -27,10 +27,10 @@ optionmenu_2 = customtkinter.CTkOptionMenu(app, variable=variable, values=countr
dynamic_resizing=False)
optionmenu_2.pack(pady=20, padx=10)
combobox_tk = ttk.Combobox(app, values=countries)
combobox_tk = ttk.Combobox(app, values=countries, textvariable=variable)
combobox_tk.pack(pady=10, padx=10)
combobox_1 = customtkinter.CTkComboBox(app, variable=None, values=countries, command=select_callback, width=300)
combobox_1 = customtkinter.CTkComboBox(app, variable=variable, values=countries, command=select_callback, width=300)
combobox_1.pack(pady=20, padx=10)
def set_new_scaling(scaling):