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
This commit is contained in:
parent
4e4a10ba27
commit
d90a959f09
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user