[wxPython-users] popupMenu and NT...
Robin Dunn
robin at alldunn.com
Thu Feb 15 09:22:10 PST 2007
Stefan Holmgren wrote:
> Hi
> I have problem to get "wx.Window.PopupMenu" to work under windows NT.
> Is it a way to make it work?
>
> This little example script is working on XP and Win2000, but not on Win NT..
> (The event is working for right click but no menu is visible..)
>
> Using: python25, wxPython2.8.1.1
>
> def onRightClick(self, event):
> print 'right click on panel'
> self.panel.PopupMenu(self.popupMenu, event.GetPosition())
I don't have a NT box to test with so I can't say for sure what the
problem is, but you might try not passing the position. There was a
change a while back that uses a default position if one is not
specified, perhaps that has some unexpected interaction on NT.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list