[wxPython-users] possible to have a ComboBox in a ListCtrl?

Robin Dunn robin at alldunn.com
Mon Mar 3 11:18:31 PST 2008


Alec Bennett wrote:
> I'm trying to have a ListCtrl with editable items. In other words, the user can select a line and
> then edit the individual columns. Using the ListCtrl_edit from the demo package this was easy.
> However, when I try to make those items be objects like a ComboBox or a checkbox, it errors out
> with the following error:
> 
> TypeError: String or Unicode type required
> 
> Is there some clever way to have pulldowns and checkboxes in a ListCtrl?
> 

Look at the rest of the backtrace and see if you can tell where and why 
it is happening.  My guess is that you didn't update enough of the code 
that deals with the edit widget.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list