Tkinter-找不到软件包treectrl [英] Tkinter - can't find package treectrl
问题描述
好吧,我想尝试在Tkinter
中使用多列ListBox
,
然后我找到了此处建议的"TkTreectrl"
",
但是问题是,当我尝试使用它并创建MultiListbox
时,
我收到此错误:
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:找不到软件包treectrl"
"_tkinter.TclError: can't find package treectrl"
任何想法怎么办? 谢谢!
Any ideas what to do? thanks!
推荐答案
从以下链接下载64或x86位tktreectrl
(取决于系统架构):
Download 64 or x86 bit tktreectrl
(depending upon system arch) from this below link :
https://sourceforge.net/projects/tktreectrl/文件/tktreectrl/tktreectrl-2.4.1/
将其放在tcl
文件夹中(例如,您在conda目录中出现此错误的位置-C:\Users\<username>\AppData\Local\Continuum\miniconda3\tcl\
)
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:
- 找不到包错误
- 无效的参数错误
这篇关于Tkinter-找不到软件包treectrl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!