Issues setting items for a multicolumn listctrl

Dan Eloff dan.eloff at gmail.com
Mon Oct 1 11:36:15 PDT 2007


Inserting items with:

            if col:
                self.InsertColumnItem(col, item)
            else:
                self.InsertItem(item)

In a loop. The items have Text associated with them, but once they've
been added, only the first item, added via InsertItem has Text. The
others have u'' as the Text. I retain a reference to the actual
ListItem object and I can still call item.Text afterwards and verify
that it has Text, but the item in the ListCtrl does not.

What's going on here?

Thanks,
-Dan




More information about the wxpython-users mailing list