]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/PythonEvents.py
Reduce flicker in the demo when image is dragged out of the frame
[wxWidgets.git] / wxPython / demo / PythonEvents.py
index 5a9655fedc51b1c401bcd4c3b69c2831466d7a3b..d7454aac6bc8e94789dc888d3c7c1ff26811c98f 100644 (file)
@@ -4,7 +4,7 @@ import sys
 
 #----------------------------------------------------------------------
 
-myEVT_BUTTON_CLICKPOS = 5015
+myEVT_BUTTON_CLICKPOS = wxNewEventType()
 
 def EVT_BUTTON_CLICKPOS(win, id, func):
     win.Connect(id, -1, myEVT_BUTTON_CLICKPOS, func)