[wxPython-users] Re: Doubt with event handling: can I event.Skip() all the time?
by Jorge Godoy other posts by this author
Jul 22 2004 7:00PM messages near this date
Re: [wxPython-users] Doubt with event handling: can I event.Skip() all the time?
|
Re: [wxPython-users] Doubt with event handling: can I event.Skip()
all the time?
Robin Dunn <robin@[...].com> writes:
> Jorge Godoy wrote:
> > Hi!
> > Could there be any problem if I adopt a default of ending my methods
> > with an 'event.Skip()' call for each and every method that is activated
> > by an event?
>
> There are a few cases where you don't want the default event handlers
> to happen, and in those cases you should not call Skip. (For example,
> if you handle a key in a EVT_KEY_DOWN handler and don't want it to be
> added to the text ctrl.) But in general calling Skip would be okay.
Oh, sure! In those cases yes, I won't be skipping the event.
I noticed this problem -- event.Skip() being demanded by GTK -- when the
event is an EVT_KILL_FOCUS. I'm just trying to make things more easy to
change if I add such an event or remove it from my applications. You
see... laziness. :-)
Thanks,
--
Godoy. <godoy@[...].org>
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Thread:
Jorge Godoy
Eugene Borodkin
Eugene Borodkin
Eugene Borodkin
Mikael Norgren
Jorge Godoy
Peter Damoc
Jorge Godoy
Robin Dunn
|