wx.EVT_LIST_ITEM_(DE)SELECTED called twice on Windows for a
wx.ListCtrl ?
Matthieu Brucher
matthieu.brucher at gmail.com
Tue May 15 09:32:57 PDT 2007
Hi,
I'm getting back to wxPython and I'm trying to do some GUI code with
ListCtrl.
I'm binding wx.EVT_LIST_ITEM_SELECTED to self.onSelect, same for deselection
and I'm keeping a list of currently selected elements.
Everything works fine on Linux (Python 2.4, wxPython 2.6, thanks to FC5),
but on Windows (Python 2.5, wxPython 2.8.3), my event is called twice, for
the selection and the deselection of an element, so each element is twice in
the selected elements.
Is this a know behaviour ?
Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200705=
15/9f5fd32f/attachment.htm
More information about the wxpython-users
mailing list