X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..66ff56694e325552c86c5f7b17d4498f8580f427:/wxPython/demo/wxPopupWindow.py diff --git a/wxPython/demo/wxPopupWindow.py b/wxPython/demo/wxPopupWindow.py index 7c98e77b37..cc4d71b83f 100644 --- a/wxPython/demo/wxPopupWindow.py +++ b/wxPython/demo/wxPopupWindow.py @@ -57,7 +57,7 @@ class TestPopup(wx.PopupWindow): 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): @@ -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" - "loses focus in any other way." + "(or its first child) loses focus in \n" + "any other way." , pos=(10,10)) sz = st.GetBestSize()