how to display the values of a CTkCombobox from another button than its dropdown button #2374
Unanswered
zorrolaotse
asked this question in
Q&A
Replies: 1 comment
-
@zorrolaotse Yes, you can simply do it using Sample example: import customtkinter as ctk
def on_click():
values = cbox.cget("values")
label.configure(text = f"{values}")
app = ctk.CTk()
cbox = ctk.CTkComboBox(app, values=["option 1", "option 2", "option 3"])
cbox.pack()
button = ctk.CTkButton(app, text="Show options", command = on_click)
button.pack()
label = ctk.CTkLabel(app, text="")
label.pack()
app.mainloop() Regards. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI,
Is it possible to display the values of a combobox from another button than its dropdown button?
For example action on the button
displays the values of the
value1
value2
value3
Thanks
Beta Was this translation helpful? Give feedback.
All reactions