Python Forum
Referencing Combo Box
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Referencing Combo Box
#7
A simple print of fooditems2[x] and combobox.get() will tell you what is what. It looks like fooditems2 contains the description and not the cost but you will have to verify that yourself.
    for key, item in check_boxes.items():
        if item.get() == 1:
            fooditems2.append(key)
Reply


Messages In This Thread
Referencing Combo Box - by MC2020 - Feb-11-2020, 11:43 PM
RE: Referencing Combo Box - by Larz60+ - Feb-12-2020, 02:54 AM
RE: Referencing Combo Box - by MC2020 - Feb-12-2020, 03:02 AM
RE: Referencing Combo Box - by Larz60+ - Feb-12-2020, 03:05 AM
RE: Referencing Combo Box - by MC2020 - Feb-12-2020, 03:10 AM
RE: Referencing Combo Box - by Larz60+ - Feb-12-2020, 03:19 AM
RE: Referencing Combo Box - by woooee - Feb-12-2020, 10:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Photo PySimpleGUI FilesBrowse enable event to update value in combo SamLiu 2 4,457 Mar-15-2023, 12:49 PM
Last Post: SamLiu
  How to update the list of a combo box in a QTableView panoss 10 6,131 Feb-05-2022, 03:24 PM
Last Post: panoss
  Radio butto to enable/disable combo box in Tkinter cybertooth 5 5,404 Oct-09-2021, 07:30 AM
Last Post: cybertooth
  Need help adding a sql List to a combo box PyQt5 jimmyvegas29 1 8,556 Jul-20-2018, 07:28 AM
Last Post: Alfalfa

Forum Jump:

User Panel Messages

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