Hi,
I'm trying out wxPython and have had pretty good luck this week. I was attempting to load data into a listbox, but didn't like some of the quirks with the selection process. So I tried wxListCtrl with SUNKEN and SINGLE_SEL (those are slightly different I just don't have my notes here...). At first I thought it was working until I put a lot of data into it. Then it went multiple column on me. If I put in REPORT I get what appears to be a single column, but nothing is seen (I'm only doing text). So with a "basic" setting, I see the data but it seems to prefer to scroll horizontally and not vertically. If I put the REPORT flag in, it appears to scroll vertically, but not show the text.
I figure there is something simple I am missing, so if any of you know anything that may help, I would greatly appreciate it. I've searched the news groups, internet, and tried IRC to no avail. The must only happen to me :-).
I'm populating the list with "lb.InsertStringItem(x,udata)". If you think more code would be helpful let me know a I'll post the actual code I use, but it is pretty generic in nature.
Hi, I'm trying out wxPython and have had pretty good luck this week.
I was attempting to load data into a listbox, but didn't like some of
the quirks with the selection process. So I tried wxListCtrl with
SUNKEN and SINGLE_SEL (those are slightly different I just don't have
my notes here...). At first I thought it was working until I put a
lot of data into it. Then it went multiple column on me. If I put in
REPORT I get what appears to be a single column, but nothing is seen
(I'm only doing text). So with a "basic" setting, I see the data but
it seems to prefer to scroll horizontally and not vertically. If I
put the REPORT flag in, it appears to scroll vertically, but not show
the text.
I figure there is something simple I am missing, so if any of you
know anything that may help, I would greatly appreciate it. I've
searched the news groups, internet, and tried IRC to no avail. The
must only happen to me :-).
I'm populating the list with "lb.InsertStringItem(x,udata)". If you
think more code would be helpful let me know a I'll post the actual
code I use, but it is pretty generic in nature.
Did you create the column with InsertColumn? To better emulate the wxListBox you may want to hide the column headers with the wxLC_NO_HEADER style, but the column still needs to be created.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!