[Tutor] GUI new project

Joe Cox jgcox39 at highstream.net
Mon Oct 23 07:44:32 CEST 2006

As a new guy, I was trying to write a simple unit conversion
program in Tk. I got this error message:TclError: unknown option "-command"

>>> Traceback (most recent call last):
line 310, in RunScript
    exec codeObject in __main__.__dict__
  File "D:\Python24\Convert it\Tk Grid demo2py.py", line 70, in ?
  File "D:\Python24\Convert it\Tk Grid demo2py.py", line 67, in main
  File "D:\Python24\Convert it\Tk Grid demo2py.py", line 22, in __init__
    , relief=SUNKEN)
  File "D:\Python24\lib\lib-tk\Tkinter.py", line 2409, in __init__
    Widget.__init__(self, master, 'listbox', cnf, kw)
  File "D:\Python24\lib\lib-tk\Tkinter.py", line 1862, in __init__
TclError: unknown option "-command"

Any Ideas?

Joe Cox
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Tk Grid demo2py.py
Url: http://mail.python.org/pipermail/tutor/attachments/20061022/49c1e4c3/attachment.pot 

More information about the Tutor mailing list