[wxPython] Triggering Events

Is there a way for me to trigger events from the code, rather than from the
screen? For example, when using Spin Control, I have an EVT_SPINCTRL to
catch whenever the arrows (up/down) are clicked calling OnSpinChange(self,
event). Is there a way for me to call the OnSpinChange() from the code?
Could I modify the function call to

  def OnSpinChange(self, event=None):

Also, I looked for an event to trigger a method if the value of the spin
control is changed by an edit (rather than using the spin control arrows),
but did not find one. Is there such a beast? Something like
EVT_SPIN_VALUE_CHANGED? I would hate for my users to edit the field and not
have it picked up by the program.

Thanks!

Greg Lindstrom
Acxiom Corporation, mail: CWY10011149
InfoBase Products Development office: (501) 342-1626
301 Industrial Blvd, Conway, AR, 72032 fax: (501) 336-3911
email: Greg.Lindstrom@acxiom.com

"Mojo, You're a Bad Monkey" Bubbles (Powerpuff Girl), after a failed
attempt by the evil Mojo to overtake the world.

event). Is there a way for me to call the OnSpinChange() from the code?
Could I modify the function call to

  def OnSpinChange(self, event=None):

I do this all the time.

Also, I looked for an event to trigger a method if the value of the spin
control is changed by an edit (rather than using the spin control arrows),
but did not find one. Is there such a beast? Something like
EVT_SPIN_VALUE_CHANGED? I would hate for my users to edit the field and
not have it picked up by the program.

I _believe_ you can use EVT_TEXT or EVT_CHAR on this control. I seem to
recall using that some time ago.

···

On Tuesday 04 September 2001 10:49, you wrote:

--
Cliff Wells
Software Engineer
Logiplex Corporation
(503) 978-6726 x308
(800) 735-0555 x308