X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..d275c7eb8420c81e97a8b308c60c27d9856b58f9:/wxPython/demo/PythonEvents.py

diff --git a/wxPython/demo/PythonEvents.py b/wxPython/demo/PythonEvents.py
index 5a9655fedc..d7454aac6b 100644
--- a/wxPython/demo/PythonEvents.py
+++ b/wxPython/demo/PythonEvents.py
@@ -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)