Tkinter-找不到软件包treectrl [英] Tkinter - can't find package treectrl

查看:154
本文介绍了Tkinter-找不到软件包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:

  1. 找不到包错误
  2. 无效的参数错误

这篇关于Tkinter-找不到软件包treectrl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆