projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DMC fix.
[wxWidgets.git]
/
wxPython
/
demo
/
PopupWindow.py
diff --git
a/wxPython/demo/PopupWindow.py
b/wxPython/demo/PopupWindow.py
index 39d4080c4c11b90c61144ba0fe8e3de06d89c583..49072ea4034f9ec0b150dff137b7e9cccb5629c8 100644
(file)
--- 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)
st.Bind(wx.EVT_LEFT_UP, self.OnMouseLeftUp)
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.wPos = self.ClientToScreen((0,0))
self.CaptureMouse()
self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
self.wPos = self.ClientToScreen((0,0))
self.CaptureMouse()