Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
combobox
#2
chosen = box.get()
if chosen is "small"():
   b = 2
if chosen is "big"():
   b = 3
small and big should not have () after them, this is trying to call the string.
check for equality using == not is
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,335 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