]> 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 84d0199ba46fdf533b7820a0eac1b2b113087562..c4d163e9ffefbec6915bb2b64e807ee85483442f 100644 (file)
@@ -34,9 +34,6 @@ class TestPopup(wxPopupWindow):
 
     def OnMouseLeftDown(self, evt):
         self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
 
     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.CaptureMouse()
 
         self.wPos = self.GetPosition()
         self.CaptureMouse()