Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-19 Thread Chris Kavanagh
On Wednesday, March 18, 2015 at 5:37:53 PM UTC-4, Terry Reedy wrote: > On 3/18/2015 3:42 PM, Chris Kavanagh wrote: > > > 2nd, you say you "don't want to play guessing games", yet complain > > about "300 lines of irrelevant code", lol. Which way is it?

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-19 Thread Chris Kavanagh
On Wednesday, March 18, 2015 at 5:50:49 PM UTC-4, Mark Lawrence wrote: > On 18/03/2015 19:42, Chris Kavanagh wrote: > > > > 2nd, you say you "don't want to play guessing games", yet complain about > > "300 lines of irrelevant code", lol. Which way

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-19 Thread Chris Kavanagh
On Wednesday, March 18, 2015 at 6:38:48 PM UTC-4, Steven D'Aprano wrote: > On Thu, 19 Mar 2015 06:42 am, Chris Kavanagh wrote: > > > While I appreciate the help greatly I thought I had put the entire > > traceback of the error. I was posting here and on StackOverflow

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Chris Kavanagh
On Wednesday, March 18, 2015 at 8:02:14 AM UTC-4, Steven D'Aprano wrote: > On Wed, 18 Mar 2015 01:41 pm, Chris Kavanagh wrote: > > > I have a simple script that takes user input (for an Employee) such as > > name, age, etc then puts in an sqlite3 database. The script

UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-17 Thread Chris Kavanagh
I have a simple script that takes user input (for an Employee) such as name, age, etc then puts in an sqlite3 database. The script worked fine until I realized one problem. The age input field is defined in SQLAlchemy as an Integer, so if a user inputs a string instead of a number in that field, an