]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxPopupWindow.py
Added compatibility file
[wxWidgets.git] / wxPython / demo / wxPopupWindow.py
index d8c3320966276a1a5cf6b280afa11fbf5185d07f..5f6477804ea2f3d31dcf56cf16b2172856d3b543 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):
@@ -73,10 +70,6 @@ class TestTransientPopup(wxPopupTransientWindow):
         sz = st.GetBestSize()
         panel.SetSize( (sz.width+20, sz.height+20) )
         self.SetSize(panel.GetSize())
-##         self.SetBackgroundColour("#FFB6C1")
-##         b = wxButton(self, -1, "this is a Button", (10,10))
-##         sz = b.GetBestSize()
-##         self.SetSize( (sz.width+20, sz.height+20) )
 
 
     def ProcessLeftDown(self, evt):