wx.EVT_RIGHT_UP strangeness?

sigpoggy at hotmail.com sigpoggy at hotmail.com
Tue Jan 29 01:01:54 EST 2008


Thanks,

I'm using wxPython 2.8.7.1 on OS X 10.4.11 with MacPython 2.5
No doubt it's a Mac thing, I'll take it to the wxPython users.


On Jan 28, 6:36 am, Mike Driscoll <kyoso... at gmail.com> wrote:
> On Jan 26, 1:30 pm, sigpo... at hotmail.com wrote:
>
>
>
> > I am playing with wxPython 2.8.7.1 on OS X 10.4.11 with MacPython 2.5
>
> > When running the demo program, the ShapeWindow demo does not close the
> > window
> > on right click. It turns out that thewx.EVT_RIGHT_UP does not fire.
>
> > I discovered that one way to get it to fire is to bind the
> >wx.EVT_RIGHT_DOWN event also.
>
> > Thus adding the following two lines solves the problem:
>
> > in __init__ add:  self.Bind(wx.EVT_RIGHT_DOWN,    self.OnRightDown)
>
> > secondly add:  def OnRightDown(self, evt): pass
>
> > Everything then works ok.
>
> > My question is: Is this how it is supposed to work, and if not, am I
> > the only one with
> > this problem?
>
> It works for me without any changes. I right-click the snake image and
> it disappears. I'm on Windows XP, Python 2.4/2.5 with wxPython 2.8.7.1
>
> What OS and wxPython version are you using?
>
> You may want to post to the wxPython user's group too. They can tell
> you if it is an OS dependent bug or not:http://wxpython.org/maillist.php
>
> Mike




More information about the Python-list mailing list