_tkinter.TclError: can't find package Tktable

_tkinter.TclError: can't find package Tktable

我想运行这个程序张贴在这里http://tkinter.unpythonic.net/wiki/TkTableCalendar, but to run this I need the tktable wrapper https://tkinter.unpythonic.net/wiki/TkTableWrapper,但是包装器抛出错误

File "tktable.py", line 115, in __init__
master.tk.call('package', 'require', 'Tktable')
_tkinter.TclError: can't find package Tktable

我不明白为什么会这样。如何解决这个问题?

您应该安装 tktable... 去这个 link: https://pypi.python.org/pypi/tkintertable/1.1.2

下载... 解压文件。 并打开已提取的文件夹。 在同一文件夹中打开命令提示符并键入此命令:

python setup.py install

正在设置,请稍候... 完成后重试。

找了很久才找到这个

http://blog.clintecker.com/post/148453368/tktable-for-tkinter-and-python

这解决了我的问题。

现在 TkTableCalender.py 正确地 运行。