[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
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
[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
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
[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 =
[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"
>
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