Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-19 Thread Terry Reedy
On 3/19/2015 4:23 AM, Chris Kavanagh wrote: On Wednesday, March 18, 2015 at 5:37:53 PM UTC-4, Terry Reedy wrote: You comment out apparently irrelevant lines and see if you still have the same problem, and if you do, delete. Repeat until you have a Minimal Complete Verifiable Example. Thank

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? Do you > > want the code, or not? How do I kno

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 is it? Do you want the code, > > or not? How do

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, and > > suppose I got confuse

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Steven D'Aprano
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, and > suppose I got confused. We all make mistakes. I got distracted and forgot to link you to http://sscce

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Mark Lawrence
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 is it? Do you want the code, or not? How do I know what's relevant or irrelevant when I'm clearly confused? On Stack, if you don'

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Terry Reedy
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? Do you want the code, or not? How do I know what's relevant or irrelevant when I'm clearly confused? You comment out appare

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 worked fine > > until I realiz

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Steven D'Aprano
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 worked fine > until I realized one problem. The age input field is defined in SQLAlchemy > as an Integer, so if

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread ckava3
On Wednesday, March 18, 2015 at 12:00:54 AM UTC-4, MRAB wrote: > On 2015-03-18 02:41, 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 worked fine > > until I realized one problem. The ag

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-17 Thread MRAB
On 2015-03-18 02:41, 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 worked fine until I realized one problem. The age input field is defined in SQLAlchemy as an Integer, so if a user inputs a

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