Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
combobox
#3
Thanks, that was useful.
Now I have another problem.
I want to create a Label that displays whatever I selected.
I try this:

if box.get() == "small":
  chosen_label = Label(root, text="You choose 'small'")
  chosen_labes.grid(column = 1, row = 4)
I try to put this after all the others buttons but it didn't work.
Is there a way to add a widget depending on what you choose on the combobox?
Reply


Messages In This Thread
combobox - by Agusben - Apr-26-2020, 02:41 PM
RE: combobox - by Yoriz - Apr-26-2020, 04:31 PM
RE: combobox - by Agusben - Apr-27-2020, 04:07 AM
RE: combobox - by deanhystad - Apr-27-2020, 05:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] How can I sync Combobox index to other combobox index? nickzsche 2 2,369 Jan-03-2022, 12:29 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020