[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):
File
"D:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py",
line 310, in RunScript
exec codeObject in __main__.__dict__
File "D:\Python24\Convert it\Tk Grid demo2py.py", line 70, in ?
main()
File "D:\Python24\Convert it\Tk Grid demo2py.py", line 67, in main
Application().mainloop()
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__
self.tk.call(
TclError: unknown option "-command"
Any Ideas?
Joe Cox
513-293-4830
-------------- 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