In wxPython, how can I tell what is the state of the drop-down list of a ComboBox
, that is, is it open or closed?
I'm trying to implement a ComboBox
that allows the user to delete a value from the list by opening the drop-down list, selecting an item, and pressing delete (Edit: when I say selecting here I mean just highlighting an item, without clicking it yet, so the drop-down list remains open).
I can bind the delete key, and I know how to delete an item, the only problem is the delete key has a different function if the drop-down list is closed (its usual function in the text field), which I want to preserve.