X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5643bdef8ff16202d5948920947cf0f2c6f9c7d4..f5766910b6731eb03e82371416e9778203396ce7:/wxPython/demo/HyperLinkCtrl.py diff --git a/wxPython/demo/HyperLinkCtrl.py b/wxPython/demo/HyperLinkCtrl.py index 3986620960..8573b74785 100644 --- a/wxPython/demo/HyperLinkCtrl.py +++ b/wxPython/demo/HyperLinkCtrl.py @@ -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()