List of Events in wxPython

hg hg at nospam.org
Wed Dec 6 14:41:48 EST 2006


Jacksondf wrote:

> What is that procedure for determining which events can be binded for a
> particular widget?  The docs don't seem to help.  For example, how can I
> know which events wx.SpinButton will send.
> 
> Thanks.
from the doc:

To process input from a spin button, use one of these event handler macros
to direct input to member functions that take a wxSpinEvent argument:
EVT_SPIN(id, func) 
Generated whenever an arrow is pressed. 
EVT_SPIN_UP(id, func) 
Generated when left/up arrow is pressed. 
EVT_SPIN_DOWN(id, func) 
Generated when right/down arrow is pressed. 
Note that if you handle both SPIN and UP or DOWN events, you will be
notified about each of them twice: first the UP/DOWN event will be
receieved and then, if it wasn't vetoed, the SPIN event will be sent. See
also

hg




More information about the Python-list mailing list