#----------------------------------------------------------------------
-myEVT_BUTTON_CLICKPOS = 5015
+myEVT_BUTTON_CLICKPOS = wxNewEventType()
def EVT_BUTTON_CLICKPOS(win, id, func):
win.Connect(id, -1, myEVT_BUTTON_CLICKPOS, func)
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])])
+