]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/HyperLinkCtrl.py
non-PCH build fix (according to Tinderbox).
[wxWidgets.git] / wxPython / demo / HyperLinkCtrl.py
index 39866209608582971e829a326d6a5300650410cb..8573b747856d8c57d7996e3d19e31ea796a4cb74 100644 (file)
@@ -89,13 +89,13 @@ class TestPanel(wx.Panel):
         
         
     def OnRightLink(self, event):
-        pos = event.GetPosition()
+        pos = self._hyper3.GetPosition() + event.GetPosition()
         menuPopUp = wx.Menu("Having a nice day?")
         ID_MENU_YES = wx.NewId()
         ID_MENU_NO  = wx.NewId()
         menuPopUp.Append(ID_MENU_YES, "Yes, absolutely!")
         menuPopUp.Append(ID_MENU_NO,  "I've had better")
-        self.PopupMenu(menuPopUp, self._hyper3.GetPosition())
+        self.PopupMenu(menuPopUp)
         menuPopUp.Destroy()