X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..025fa9a96bba741d6825ce8f78df37dc07dc6062:/wxPython/demo/PythonEvents.py diff --git a/wxPython/demo/PythonEvents.py b/wxPython/demo/PythonEvents.py index 5a9655fedc..911f04b4aa 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) @@ -77,9 +77,16 @@ def runTest(frame, nb, log): overview = """\ -This demo is a contrived example of defining an event class in wxPython and sending it up the containment heirachy for processing. +This demo is a contrived example of defining an event class in wxPython and sending it up the containment hierarchy for processing. """ + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +