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:
@@ -48,7 +48,10 @@ class TestPopup(wx.PopupWindow):
|
|||||||
st.Bind(wx.EVT_LEFT_UP, self.OnMouseLeftUp)
|
st.Bind(wx.EVT_LEFT_UP, self.OnMouseLeftUp)
|
||||||
st.Bind(wx.EVT_RIGHT_UP, self.OnRightUp)
|
st.Bind(wx.EVT_RIGHT_UP, self.OnRightUp)
|
||||||
|
|
||||||
|
wx.CallAfter(self.Refresh)
|
||||||
|
|
||||||
def OnMouseLeftDown(self, evt):
|
def OnMouseLeftDown(self, evt):
|
||||||
|
self.Refresh()
|
||||||
self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
|
self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
|
||||||
self.wPos = self.ClientToScreen((0,0))
|
self.wPos = self.ClientToScreen((0,0))
|
||||||
self.CaptureMouse()
|
self.CaptureMouse()
|
||||||
|
Reference in New Issue
Block a user