Re: In Tkinter - having an input and an entry

2008-04-05 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Thanks it sorted out my 'StringVar' problem. > I now have another problem... > > Exception in Tkinter callback > Traceback (most recent call last): > File "D:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__ > return self.func(*args) > TypeError: Insert() t

Re: In Tkinter - having an input and an entry

2008-04-05 Thread [EMAIL PROTECTED]
On Apr 5, 12:55 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Traceback (most recent call last): > > File "F:\Programming\python and database\access_db8.2.py", line 129, > > in ? > > Tkwindow() > > File "F:\Programming\python and database\access_db8.2.py", line

Re: In Tkinter - having an input and an entry

2008-04-05 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Traceback (most recent call last): > File "F:\Programming\python and database\access_db8.2.py", line 129, > in ? > Tkwindow() > File "F:\Programming\python and database\access_db8.2.py", line 88, > in Tkwindow > title = stringVar() > NameError: global name 's

Re: In Tkinter - having an input and an entry

2008-04-05 Thread [EMAIL PROTECTED]
Traceback (most recent call last): File "F:\Programming\python and database\access_db8.2.py", line 129, in ? Tkwindow() File "F:\Programming\python and database\access_db8.2.py", line 88, in Tkwindow title = stringVar() NameError: global name 'stringVar' is not defined Here is the TKw

Re: In Tkinter - having an input and an entry

2008-04-05 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I can fetch records but cannot insert records. > > def Insert(self, *row): > global cursor, title, author, pubdate using globals to pass arguments to a function/method is usually not a good idea. any reason you cannot pass them in as arguments? > sqlInsert =

Re: In Tkinter - having an input and an entry

2008-04-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I need some advice, > I am creating a python program to communicate with an MS Access db in > python 2.4. > I can fetch records but cannot insert records. > > def Insert(self, *row): > global cursor, title, author, pubdate > sqlInsert = "INSERT INTO Book_table" >

In Tkinter - having an input and an entry

2008-04-05 Thread markfernandes02
I need some advice, I am creating a python program to communicate with an MS Access db in python 2.4. I can fetch records but cannot insert records. def Insert(self, *row): global cursor, title, author, pubdate sqlInsert = "INSERT INTO Book_table" sqlInsert = sqlInsert + "(Bookname, Bo