X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6987674470bb3f6fcbd103c9e78f3b9c8c2b0b4..c1dda21b64f300d89cbc084802082d37c694e971:/wxPython/demo/HyperLinkCtrl.py diff --git a/wxPython/demo/HyperLinkCtrl.py b/wxPython/demo/HyperLinkCtrl.py index 31bc6efe11..8573b74785 100644 --- a/wxPython/demo/HyperLinkCtrl.py +++ b/wxPython/demo/HyperLinkCtrl.py @@ -54,7 +54,7 @@ class TestPanel(wx.Panel): self._hyper3.Bind(hl.EVT_HYPERLINK_RIGHT, self.OnRightLink) self._hyper3.SetLinkCursor(wx.CURSOR_QUESTION_ARROW) - self._hyper3.SetColours("GREEN", "RED", "YELLOW") + self._hyper3.SetColours("DARK GREEN", "RED", "NAVY") self._hyper3.SetUnderlines(False, False, False) self._hyper3.EnableRollover(True) self._hyper3.SetBold(True) @@ -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()