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…)
Entries tagged with “OOP”.
Did you find what you wanted?
Thu 16 Dec 2010
wxPython: Storing Objects in ComboBox or ListBox Widgets
Posted by Mike under Cross-Platform, Python, wxPython
[4] Comments
Sun 22 Aug 2010
Book Review: Python 3 Object Oriented Programming
Posted by Mike under Books, Cross-Platform, Python
[4] Comments

