By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,852 Members | 994 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,852 IT Pros & Developers. It's quick & easy.

List of Events in wxPython

P: n/a
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.
Dec 6 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
hg
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

Dec 6 '06 #2

P: n/a
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.
Exactly which docs are you looking at? The wxPython docs have a link
that lists all the classes, just scroll down to that particular class
and it lists the events, like hg posted.
Dec 7 '06 #3

P: n/a
John wrote the following on 12/07/2006 09:39 AM:
Exactly which docs are you looking at? The wxPython docs have a link
that lists all the classes, just scroll down to that particular class
and it lists the events, like hg posted.
Strange. I was looking at:

http://www.wxpython.org/docs/api/wx....ton-class.html

And this page definitely does not show what hg posted. Apparently, I
should not refer to the wxPython specific docs, but instead go directly
to the original wx.

http://www.wxwidgets.org/manuals/2.6...pinbutton.html

My mistake.
Dec 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.