listctrl and multiple selection

hi,

I started to write some app. using
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/426407
example

it works, but I'm not able to select multiple lines - or - I can
select them, but self.OnItemSelected(self,event) is NOT called.

The wxPython demo works, but I can not find out, where the problem is

Could anybody point me to right direction?

thanks

jachym

···

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Thanks for your answer,

Could you point to better solution? What and roughly in which
direction should I change. Some example would help too. I can not say,
I exactly know, what I'm doing here...

Thanks a lot

Jachym

···

2007/4/4, Robin Dunn <robin@alldunn.com>:

Jachym Cepicky wrote:
> hi,
>
> I started to write some app. using
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/426407
> example
>
> it works, but I'm not able to select multiple lines - or - I can
> select them, but self.OnItemSelected(self,event) is NOT called.
>
> The wxPython demo works, but I can not find out, where the problem is
>
> Could anybody point me to right direction?

When the ListCtrl is in virtual mode then it won't do anything that
could possibly mean that every item in the list would be visited. This
includes sending an event for every item selected when a multiple
selection is done. To understand why this is the case try to imagine
what would happen if you had an event handler for item selection and a
virtual listctrl with 1 billion items, and you click the first item,
scroll to the bottom and shift-click the last item. Scrolling would be
quick because it only needs to visit those items that need to be
painted, but sending the selection events would take a week or so. :wink:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub