Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
combobox
#4
Spelling error:
if box.get() == "small":
  chosen_label = Label(root, text="You choose 'small'")
  chosen_labes.grid(column = 1, row = 4)  # chosen_labes?
Didn't python complain? I saw this output in the terminal.
Output:
Traceback (most recent call last): File "C:\Users\djhys\Documents\Python\Musings\junk.py", line 42, in <module> chosen_labes.grid(column = 1, row = 3) NameError: name 'chosen_labes' is not defined
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,382 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