def __addPlaylist(self, playlist):
"""Add a playlist in the wxListCtrl playlistList."""
self.playlistList.InsertStringItem(self.__currentIndex,
playlist.name)
self.playlistList.SetStringItem(self.__currentIndex, 1,
playlist.getTime().toString())
self.__currentIndex += 1
This wxListCtrl is in a splitter.
When I launch my app, the splitter hide my wxListCtrl. But if I drga the
splitter, I can see it.
Once I have populated my wxListCtrl, first I can't see anything in it (but
the items are there, because I can move the selection). And if I move the
splitter, the column headers go away !!!
def __addPlaylist(self, playlist):
"""Add a playlist in the wxListCtrl playlistList."""
self.playlistList.InsertStringItem(self.__currentIndex,
playlist.name)
self.playlistList.SetStringItem(self.__currentIndex, 1,
playlist.getTime().toString())
self.__currentIndex += 1
This wxListCtrl is in a splitter.
When I launch my app, the splitter hide my wxListCtrl. But if I drga the splitter, I can see it.
Once I have populated my wxListCtrl, first I can't see anything in it (but the items are there, because I can move the selection). And if I move the splitter, the column headers go away !!!
What are self and self.playlistListPanel, and where in the window heirarchy is the splitter?
A complete sample that shows the problem would help solve this.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Shame on me !!! I used ClearAll() instead of DeleteAllItems() !!! It
couldn't work.
I'm switching from FXPy (the python FOX wrapper) to wxWindows, and under
FXPy, DeleteAllItems() <=> clearAll()...
Sorry for the noise :o(
···
On Friday 03 October 2003 22:05, Frederic wrote:
Once I have populated my wxListCtrl, first I can't see anything in it
(but the items are there, because I can move the selection). And if I
move the splitter, the column headers go away !!!