First, I don'quite understand why I need to create a new item with the
InsertStringItem(label) method. What does the label mean? I don't see it
anywhere in my list.
When the user clicks on a button, I want to empty my list, and delete
all columns. Emptying the list seems to work fine with DeleteAllItems(),
but I don't see how to delete all columns, as there seems to be no way
to determine the current number of columns. It also seems like GetColumn
isn't wrapped to Python yet.
Does anybody have a hint on how to delete all columns or can explain the
purpose of InsertItem vs. SetItemString?
ciao,
Gerhard
···
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
wxListCtrl::ClearAll() will totally empty the wxListCtrl. I'm not sure
about the other question, so I'll leave that for someone with more
wx(Python) experience.
Cheers,
···
On Fri, Jun 07, 2002 at 03:48:49PM +0200, Gerhard H?ring wrote:
Does anybody have a hint on how to delete all columns or can explain the
purpose of InsertItem vs. SetItemString?
Does anybody have a hint on how to delete all columns or can explain the
purpose of InsertItem vs. SetItemString?
In the list control using the wxLC_REPORT style an item is the whole row, so
first you have to "insert" a new item, and then you can "set" the strings
for the remaining columns of the item.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
* Robin Dunn <robin@alldunn.com> [2002-06-07 09:02 -0700]:
> Does anybody have a hint on how to delete all columns or can explain the
> purpose of InsertItem vs. SetItemString?
In the list control using the wxLC_REPORT style an item is the whole row, so
first you have to "insert" a new item, and then you can "set" the strings
for the remaining columns of the item.
Thanks, Alexander and Robin!
The Virtual List behaviour is very cool. Using it in combination with
server-side database cursors allows me to lazily look at SQL statements.
I'm trying to write a little PostgreSQL admin tool as a learning
experience
Gerhard
···
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
>
> Does anybody have a hint on how to delete all columns or can explain the
> purpose of InsertItem vs. SetItemString?
In the list control using the wxLC_REPORT style an item is the whole row,
so
first you have to "insert" a new item, and then you can "set" the strings
for the remaining columns of the item.
Is it also correct that only the left-hand column of a wxListCtrl can
contain an image? I spent a lot of time ferkling about with this before I
twigged it was a lift of the Windows Explorer right-hand pane component. Can
any Unix users comment on how well wxListCtrl works in that environment?
Does anyone have suggestions about the appropriate component to use to model
the Outlook Express message list (the top right pane)? Neither wxListCtrl
not wxGrid appear to match exactly.
regards
···
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------