运行我编写的python/tkinter
GUI应用程序时出现以下错误。_tkinter.TclError:无效的命令名称“labelframe”
我以为它可能是一个Tcl/Tk版本问题,但LabelFrame()
命令是在Tcl/Tk 8.4(这是我使用的版本)中添加的。
我正在尝试执行该程序的另一台计算机能够运行我编写的另一个python/tkinter
应用程序 - 应用程序之间的差异在于一个使用了LabelFrame()
小部件,另一个不使用。
Traceback (most recent call last):
File "/home/nharris/python/isub_parser/isub.py", line 672, in <module>
timeFrame = LabelFrame(optFrame, text="Time Scale Options")
File "/usr/apps/Python/python2.6.1-rhel3-i686/lib/python2.6/lib-tk/Tkinter.py", line 3525, in __init__
Widget.__init__(self, master, 'labelframe', cnf, kw)
File "/usr/apps/Python/python2.6.1-rhel3-i686/lib/python2.6/lib-tk/Tkinter.py", line 1932, in __init__
(widgetName, self._w) + extra + self._options(cnf))
_tkinter.TclError: invalid command name "labelframe"
'import Tkinter的输出是什么; print Tkinter.TkVersion` – SingleNegationElimination 2010-11-22 21:45:46