Closed nickandwolf closed 10 months ago
That method was too convoluted, I've resorted to storing the callback variable into a global one.
def _listCallback(v=None):
self.v = v
You can try setCurrentRow as in the demo:
or setCurrentItem:
How do I get the currently selected items? Unless there was something pushed since last release and I'm just a big dummy.
ah, sorry you can use: "selectedItems", "selectedLabels"
as in:
I have no clue on how to get a selected item or default the List to specific choice. I've resorted to using:
for ensuring the first item is highlighted. And I'm cycling through the list to check what current choice is selected.
For context, the List is used to select objects to edit. I am trying to create a Save function which is checks what step the user is on and then pulls the widgets' current values and assigns them to the right variables.
When trying selectedItems() or selectedLabels() both come up empty ( [] )