]> git.saurik.com Git - wxWidgets.git/commitdiff
Add some refreshes to try and workaround a display glitch
authorRobin Dunn <robin@alldunn.com>
Tue, 29 Jun 2004 02:05:36 +0000 (02:05 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 29 Jun 2004 02:05:36 +0000 (02:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/PopupWindow.py

index 39d4080c4c11b90c61144ba0fe8e3de06d89c583..49072ea4034f9ec0b150dff137b7e9cccb5629c8 100644 (file)
@@ -48,7 +48,10 @@ class TestPopup(wx.PopupWindow):
         st.Bind(wx.EVT_LEFT_UP, self.OnMouseLeftUp)
         st.Bind(wx.EVT_RIGHT_UP, self.OnRightUp)
 
+        wx.CallAfter(self.Refresh)
+
     def OnMouseLeftDown(self, evt):
+        self.Refresh()
         self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
         self.wPos = self.ClientToScreen((0,0))
         self.CaptureMouse()