I am currently trying to write a program where all events will be handled by one function.To do this appropriately i believe i would need to use 'if' statements to create an output depending on the widget pressed.So i tried to use the following:
However when i try to run the program
i get the following error:
Can anyone show me where i have gone wrong?By the way i use python25 with IDLE and the wx module.
Code:
id=event.GetId()
i get the following error:
Code:
Traceback (most recent call last): File "C:\Python25\CalculatorBlueprint.py",line 64,in handler id=event.GetId() NameError:global name 'event' is not defined
Comment