Hello,
Adding items to a ListCtrl (in report mode -- with two columns ) with
…
self.list_box.InsertStringItem(self.cnt,“Junk”)
self.list_box.SetStringItem(self.cnt,1,“Test”)
self.cnt = self.cnt + 1
…
I cannot seem to get the “SetStringItem” to work. The results do not show up at all. No Error when I run
Any thoughts ?
Cheers
Eric
According to the (wxPython 2.2.1) documentation, the latter of the two calls should have an extra argument, an image index. (Aside to Robin: should there be a SetStringImageItem call, in line with the Insert… call?)
I imagine that this index can be any value if the list isn’t displaying images.
Cheerio,
Chris
···
-----Original Message-----
From:
wxpython-users-admin@lists.sourceforge.net [mailto:wxpython-users-admin@lists.sourceforge.net ]On Behalf Of Eric Hagemann
Sent: Friday, 13 October 2000 11:35 AM
To:
wxpython-users@lists.sourceforge.net
Subject: [wxPython] Another simple (hopefully) Question - ListCtrl
Hello,
Adding items to a ListCtrl (in report mode -- with two columns ) with
…
self.list_box.InsertStringItem(self.cnt,“Junk”)
self.list_box.SetStringItem(self.cnt,1,“Test”)
self.cnt = self.cnt + 1
…
I cannot seem to get the “SetStringItem” to work. The results do not show up at all. No Error when I run
Any thoughts ?
Cheers
Eric
Robin
October 13, 2000, 4:02pm
3
...
self.list_box.InsertStringItem(self.cnt,"Junk")
self.list_box.SetStringItem(self.cnt,1,"Test")
self.cnt = self.cnt + 1
....
I cannot seem to get the "SetStringItem" to work. The results do
not show up at all. No Error when I run
This part looks right. Can you make a small example program that duplicates
the problem and send it please?
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users