From: Robin Dunn Date: Tue, 29 Jun 2004 02:05:36 +0000 (+0000) Subject: Add some refreshes to try and workaround a display glitch X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d90a959f09c38c170a2c0035d99259234f7ff9b1 Add some refreshes to try and workaround a display glitch git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/PopupWindow.py b/wxPython/demo/PopupWindow.py index 39d4080c4c..49072ea403 100644 --- a/wxPython/demo/PopupWindow.py +++ b/wxPython/demo/PopupWindow.py @@ -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()