© Mike Driscoll 2018
Mike DriscollwxPython Recipeshttps://doi.org/10.1007/978-1-4842-3237-8_13

13. Using Objects in Widgets

Mike Driscoll
(1)
Ankeny, New York, USA
 

Recipe 13-1. Using ObjectListView Instead of ListCtrl

Problem

The wxPython ListCtrl is a very handy widget. Unfortunately, it can be a pain to use as well. This discovery caused Phillip Piper, missionary to Mozambique, to write ObjectListView, a wrapper for the wx.ListCtrl. It is now maintained by others in the wxPython community.
ObjectListView actually adds functionality because it uses objects to create its rows, and thus, it makes getting information from multiple columns much easier. Mr. Piper also added lots of other conveniences that make adding custom editors easier, alternating ...

Get wxPython Recipes: A Problem - Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.