kyosohma at gmail.com
Mon Jan 28 15:36:15 CET 2008
On Jan 26, 1:30 pm, sigpo... at hotmail.com wrote:
> I am playing with wxPython 126.96.36.199 on OS X 10.4.11 with MacPython 2.5
> When running the demo program, the ShapeWindow demo does not close the
> on right click. It turns out that the wx.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 188.8.131.52
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
More information about the Python-list