Python: 2.4.2 (#2, Mar 4 2006, 02:19:37)
[GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)]
wxPython Version: 2.8.1.1
Platform: Linux-2.6.16.27.tex1.lve-i686-Mobile_AMD_Sempron-tm-_Processor_3000+-with-mandrake-2006-Texstar
The issue is when I bind the EVT_LIST_ITEM_SELECTED event the ItemId
being returned is always 0 on my linux box, but the code works fine on
windows. Attached is a simple demo
Python: 2.4.2 (#2, Mar 4 2006, 02:19:37)
[GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)]
wxPython Version: 2.8.1.1
Platform: Linux-2.6.16.27.tex1.lve-i686-Mobile_AMD_Sempron-tm-_Processor_3000+-with-mandrake-2006-Texstar
The issue is when I bind the EVT_LIST_ITEM_SELECTED event the ItemId
being returned is always 0 on my linux box, but the code works fine on
windows. Attached is a simple demo
Use event.GetIndex() instead of event.GetItem().GetId(). The item is only set for some events.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Ahh thanks that works. Windows is annoying in its acceptance of
improper code some times
···
On 2/8/07, Robin Dunn <robin@alldunn.com> wrote:
Dj Gilcrease wrote:
> Python: 2.4.2 (#2, Mar 4 2006, 02:19:37)
> [GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)]
> wxPython Version: 2.8.1.1
> Platform:
> Linux-2.6.16.27.tex1.lve-i686-Mobile_AMD_Sempron-tm-_Processor_3000+-with-mandrake-2006-Texstar
>
> The issue is when I bind the EVT_LIST_ITEM_SELECTED event the ItemId
> being returned is always 0 on my linux box, but the code works fine on
> windows. Attached is a simple demo
>
Use event.GetIndex() instead of event.GetItem().GetId(). The item is
only set for some events.
--
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