]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxPopupWindow.py
removed obsolete files
[wxWidgets.git] / wxPython / demo / wxPopupWindow.py
index ad769d447d3ea53606260054ac9f41849dea994d..cc4d71b83fc04a1a651aefc91f70884eb10e5fd2 100644 (file)
@@ -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):