X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a57d56d66294799d6d36e64fa7aed6ff42a4d1e9..f7db440e1f01702901bf9a54be26ec4dc6b69561:/wxPython/demo/wxPopupWindow.py?ds=inline diff --git a/wxPython/demo/wxPopupWindow.py b/wxPython/demo/wxPopupWindow.py index d8c3320966..c4d163e9ff 100644 --- a/wxPython/demo/wxPopupWindow.py +++ b/wxPython/demo/wxPopupWindow.py @@ -34,10 +34,7 @@ class TestPopup(wxPopupWindow): def OnMouseLeftDown(self, evt): self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition()) - if wxPlatform == "__WXMSW__": # this is weird... - self.wPos = self.GetParent().ClientToScreen(self.GetPosition()) - else: - self.wPos = self.GetPosition() + self.wPos = self.GetPosition() self.CaptureMouse() def OnMouseMotion(self, evt):