Sorry all, the example I posted yesterday was incorrect. The example I have now attached is the actual test case. I've included a binding to EVT_SPINCTRL - which does work, but the bindings to EVT_SPIN_UP and EVT_SPIN_DOWN do not. To see run the enclosed app, no events are fired when you press the spinner buttons (although the value changes). If you comment out lines 27 and 28 and uncomment line 29 then it works.
My problem is that PythonCard binds to EVT_SPIN_UP and EVT_SPIN_DOWN, which works fine on MSW. I'd like, if possible, to keep this because changing the default event in PythonCard to EVT_SPINCTRL loses a little bit of control for the programmer.
Regards,
Andy
wxSpin.py (1.14 KB)
wxSpin.py (1.08 KB)
Spinner Events in wxGTK (2.64 KB)
···
--
--------------------------------------------------------------------------------
From the desk of Andrew J Todd esq - http://www.halfcooked.com/