I recently switched to a Ubuntu distribution (Release 5.10) and suddenly a wxPython script is behaving strangely. I am currently using wxPython version 2.6.1.1-pre.
I have a wxListBox that I created with the following line
When I click on one line of the list, that line is selected. When I click on a second line, however, the second line is selected, but the first line is unselected. I can select both by holding down the Shift key, but then all lines in between the first and second selection are selected. I think this is what wxLB_EXTENDED is supposed to do.
This all worked fine on my previous distribution (Libranet 2.8). Does anyone know how to fix this?
The standard behaviors for most 'select items in a list' are such that
clicking one item then holding down shift and selecting another item
would select everything in the range (at least every list control I've
run into over the course of the last few years). If you only want to
select those items for which you click, that's what ctrl+click is for
(at least in my experience).
- Josiah
···
Gary Jaffe <gfj555@gmail.com> wrote:
When I click on one line of the list, that line is selected. When I
click on a second line, however, the second line is selected, but the
first line is unselected. I can select both by holding down the Shift
key, but then all lines in between the first and second selection are
selected. I think this is what wxLB_EXTENDED is supposed to do.
This all worked fine on my previous distribution (Libranet 2.8). Does
anyone know how to fix this?
I recently switched to a Ubuntu distribution (Release 5.10) and suddenly a wxPython script is behaving strangely. I am currently using wxPython version 2.6.1.1-pre.
I have a wxListBox that I created with the following line
When I click on one line of the list, that line is selected. When I click on a second line, however, the second line is selected, but the first line is unselected. I can select both by holding down the Shift key, but then all lines in between the first and second selection are selected. I think this is what wxLB_EXTENDED is supposed to do.
This all worked fine on my previous distribution (Libranet 2.8). Does anyone know how to fix this?
I think the multi-select without shift or ctrl stopped working on wxGTK after an upgrade of GTK a couple years ago. I just assumed that it was not possible to do it anymore with the current gtk listbox. Do you happen to remember what version of libgtk2 was on your old system?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!