X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a57d56d66294799d6d36e64fa7aed6ff42a4d1e9..163f2606f82330354e01d30624158fca147a58b4:/wxPython/demo/wxPopupWindow.py 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):