I have a list of Vertex objects, each with their own labels and id's. How can I use this list as a model for a wxPython ComboBox such that when a user selects an option, I can immediately retrieve the Vertex id?
It appears that ComboBox only accepts strings as a model. I cannot create a dictionary of label to id pairs since there are duplicate labels.
I noticed a ComboCtrl class which I can subclass to create a specialized combo box, but I feel like there is a easier solution to this.
labels + id
?