]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxPopupWindow.py
removed code (not necessary anymore)
[wxWidgets.git] / wxPython / demo / wxPopupWindow.py
index 84d0199ba46fdf533b7820a0eac1b2b113087562..5f6477804ea2f3d31dcf56cf16b2172856d3b543 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()
 
@@ -73,10 +70,6 @@ class TestTransientPopup(wxPopupTransientWindow):
         sz = st.GetBestSize()
         panel.SetSize( (sz.width+20, sz.height+20) )
         self.SetSize(panel.GetSize())
         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):
 
 
     def ProcessLeftDown(self, evt):