tjpren
March 9th, 2009, 12:08 PM
Hi,
I'm wondering whether anyone can assist with code correction. I'm trying to teach myself python/wxpython.
I've got some basic python code working, and am wanting some GUI around it.
Basically, I'm wanting a user to enter a two names into two textctrl's. A button click sends the contents of the textctrl into the body of the application for some processing (thats the python part that works). The output is then sent to another textctrl as a result.
My problem is redirecting the textctrl into the python body.
When I use the button event, the code jumps to the section where I try to read the contents of the textctrl's, but I get an error message:
NameError: global name 'basicText' is not defined
where basicText is the name of the first of the textctrl's
I'm wondering whether anyone can assist with code correction. I'm trying to teach myself python/wxpython.
I've got some basic python code working, and am wanting some GUI around it.
Basically, I'm wanting a user to enter a two names into two textctrl's. A button click sends the contents of the textctrl into the body of the application for some processing (thats the python part that works). The output is then sent to another textctrl as a result.
My problem is redirecting the textctrl into the python body.
When I use the button event, the code jumps to the section where I try to read the contents of the textctrl's, but I get an error message:
NameError: global name 'basicText' is not defined
where basicText is the name of the first of the textctrl's