]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxPopupWindow.py
Enhanced the DnD demo and made the code more informative.
[wxWidgets.git] / wxPython / demo / wxPopupWindow.py
index d8c3320966276a1a5cf6b280afa11fbf5185d07f..c4d163e9ffefbec6915bb2b64e807ee85483442f 100644 (file)
@@ -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):