Double event on EVT_BUTTON

From: Mike Driscoll [mailto:mdriscoll@co.marshall.ia.us]
Sent: Monday, January 14, 2008 3:23 PM
> From: Aaron Brady [mailto:castironpi@comcast.net]
> Sent: Monday, January 14, 2008 10:53 AM
> > From: Mike Driscoll [mailto:mdriscoll@co.marshall.ia.us]
> > Sent: Monday, January 14, 2008 10:28 AM
> > > From: Aaron Brady [mailto:castironpi@comcast.net]
> > > Sent: Sunday, January 13, 2008 11:22 PM
> > >
> > > I'm getting a double event fired on EVT_BUTTON. It
> doesn't happen
> > > without
> > > e.Skip() (line 13), but I'm using it. I'm not understanding
> > > something.
> >
> > EventPropagation - wxPyWiki
> two steps on page /EventPropogation that are doing the
I think the reason it fires twice is because you are not subclassing
wx.Frame (wx.App or wx.Panel) here, thus when the event is skipped, it

Not it. Add this:

class AFrame( wx.Frame ): pass
frame= AFrame( None )

Not this either:

class AApp( wx.App ): pass
app= AApp()
frame= wx.Frame( None )
.

propagates to the "top level". Since the top level has the same function
(i.e. "a qualified handler"), it gets called again. It seems to me that

Has? I only bind once.

ยทยทยท

-----Original Message-----