简体   繁体   中英

_tkinter.TclError: can't find package Tktable

I wanted to run this program posted here http://tkinter.unpythonic.net/wiki/TkTableCalendar , but to run this I need the tktable wrapper https://tkinter.unpythonic.net/wiki/TkTableWrapper , but the wrapper throws an error

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

I don't understand why it is behaving this way. How to fix this problem?

After searching for a long time I found this

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

which solves my problem.

Now the TkTableCalender.py is running properly.

You should install tktable... Go this link: https://pypi.python.org/pypi/tkintertable/1.1.2

Download it... Extract file. And open the folder which has been extracted. Open command prompt in same folder and type this command:

python setup.py install

Wait while it is being set up... After doing it try again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM