I am trying to make my GUI display information depending on the item chosen in the combobox. PySimpleGUI
cookbook says that I should be using GetSelectedItemsIndexes()
method, but when I try using it:
window.Element('_COMBOBOX_').GetSelectedItemsIndexes()
I get this:
AttributeError: 'Combo' object has no attribute 'GetSelectedItemsIndexes'
I tried type this into the console:
dir(window.Element('_COMBOBOX_'))
and it seems that GetSelectedItemsIndexes
is not even there... So how can I get the index of a chosen value from combobox?