[wxPython-users] wx.TreeCtrl.GetSelections() not working as expected

Edgar Poth epmlist at googlemail.com
Fri Jun 1 12:47:48 PDT 2007


Robin,

This is very strange. I have test different wxPython installations on
different computers.
 All have the same behaviour.

I will try to describe the problem.

 - Select first item (item1)
   GetSelections() return the selected item. This is OK

 - Select the second item (item2) (shift+down)
   GetSelections() return only one item (only item2). This is not OK. Where
is item1 ?

 - Select the third item (item3) (shift+down)
   GetSelections() return list with two items [item1,item3]. This is not OK.
Where is item2 ?

 - Select the fourth item (item4)  (shift+down)
   GetSelections() return list with three items [item1,item2,item4]. This is
not OK. Where is item3 ?

 - Deselect item4 (shift+up)
   GetSelections() return list with three items [item1,item2,item3]. This is
OK.

 - Deselect item3 (shift+up)
   GetSelections() return list with three items [item1,item2]. This is OK.

I will try tomorrow the same test on Linux.

Thanks for your help.

Edgar

2007/6/1, Robin Dunn <robin at alldunn.com>:
>
> Edgar Poth wrote:
> > Tanks for the reply.
> >
> > OK have upgrade to wxPython 2.8.4.0 <http://2.8.4.0> but have still the
> > same problem !
> >
>
> I also can't duplicate the problem using my current workspace version
> (2.8.4.1pre).  The items don't always come in the order that I expect,
> but they are all there.
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org  Java give you jitters?  Relax with wxPython!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200706=
01/79563108/attachment.htm


More information about the wxpython-users mailing list