]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxPopupWindow.py
removed obsolete files
[wxWidgets.git] / wxPython / demo / wxPopupWindow.py
index 7c98e77b37369850368e929d8138e0b63d4525cd..cc4d71b83fc04a1a651aefc91f70884eb10e5fd2 100644 (file)
@@ -57,7 +57,7 @@ class TestPopup(wx.PopupWindow):
 
     def OnMouseLeftDown(self, evt):
         self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
 
     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):
         self.CaptureMouse()
 
     def OnMouseMotion(self, evt):
@@ -87,7 +87,8 @@ class TestTransientPopup(wx.PopupTransientWindow):
                           "wxPopupWindow which disappears\n"
                           "automatically when the user\n"
                           "clicks the mouse outside it or if it\n"
                           "wxPopupWindow which disappears\n"
                           "automatically when the user\n"
                           "clicks the mouse outside it or if it\n"
-                          "loses focus in any other way."
+                          "(or its first child) loses focus in \n"
+                          "any other way."
                           ,
                           pos=(10,10))
         sz = st.GetBestSize()
                           ,
                           pos=(10,10))
         sz = st.GetBestSize()