Thu 16 Dec 2010
wxPython: Storing Objects in ComboBox or ListBox Widgets
Posted by Mike under Cross-Platform, Python, wxPython
[4] Comments
Earlier this week, there was a discussion on the wxPython IRC channel about how to store objects in wx.ListBox. Then later on that day, there was a question on StackOverflow about the same thing, but in relation to the wx.ComboBox. Fortunately, both of these widgets inherit from wx.ItemContainer and contain the Append method, which allows you to associate an object with an item in these widgets. In this article, you will find out how this is done. (more…)