From 122070e2a7be65d104cb22fba49d55800dd4c6c1 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 29 Dec 2003 23:21:38 +0000 Subject: [PATCH] Apparently wxPopupWindow position is not screen relative any longer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/wxPopupWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/demo/wxPopupWindow.py b/wxPython/demo/wxPopupWindow.py index ad769d447d..cc4d71b83f 100644 --- a/wxPython/demo/wxPopupWindow.py +++ b/wxPython/demo/wxPopupWindow.py @@ -57,7 +57,7 @@ class TestPopup(wx.PopupWindow): def OnMouseLeftDown(self, evt): self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition()) - self.wPos = self.GetPosition() + self.wPos = self.ClientToScreen((0,0)) self.CaptureMouse() def OnMouseMotion(self, evt):