some demo cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-11-14 04:01:42 +00:00
parent eef97940e8
commit f0db4f3850
4 changed files with 13 additions and 8 deletions

View File

@@ -34,10 +34,10 @@ 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()
## if wxPlatform == "__WXMSW__": # this is weird...
## self.wPos = self.GetParent().ClientToScreen(self.GetPosition())
## else:
self.wPos = self.GetPosition()
self.CaptureMouse()
def OnMouseMotion(self, evt):