Tkinter - can't find package treectrl

廉价感情. 提交于 2019-12-13 01:33:07

问题


Well I wanted to try using multi-column ListBox in Tkinter, and I came to find "TkTreectrl" which was suggested here, but the problem is, when I try using it and creating a MultiListbox, I'm getting this error:

"_tkinter.TclError: can't find package treectrl"

Any ideas what to do? thanks!


回答1:


Download 64 or x86 bit tktreectrl (depending upon system arch) from this below link :

https://sourceforge.net/projects/tktreectrl/files/tktreectrl/tktreectrl-2.4.1/

Put it in tcl folder (e.g your conda directory where you get this error --C:\Users\<username>\AppData\Local\Continuum\miniconda3\tcl\)

You will get rid of two types of of error:

  1. Can't find package error
  2. Invalid argument Error


来源:https://stackoverflow.com/questions/23984676/tkinter-cant-find-package-treectrl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!