python-3.x - 导入错误 : No module named 'TkTreectrl'

标签 python-3.x tkinter

我是 python 的新手,正在尝试使用 MultiListbox。它说我需要导入 TkTreetrl。我已经完成了 import TkTreetrl as treectrl 但它仍然给我错误。

在网上看了一些资料后,我的印象是我应该向我的程序所在的文件夹中添加一些文件?

有人可以帮助我了解我究竟如何做到这一点吗?

最佳答案

这里是一份让文件运行的小 list :

1) Download the package file from the internet or get it whereever you can get it from
2) Unzip it (if nessecary)
3) Move it into the directory of your code file
4) Run your code, if there are no errors it will run.

我假设 MultiListbox 模块在子文件夹中,您需要这样调用它们:

从 MultiListbox.subfolder 导入 *

import Multilistbox

希望能帮到你!

关于python-3.x - 导入错误 : No module named 'TkTreectrl' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36015615/

相关文章:

python - 如何将 awdark 主题安装到 ttk python 中

python - 如何使用after方法使回调定期运行?

python - Tkinter - 如何删除框架周围的边框?

python - tkinter - 辅助显示器的屏幕宽度和高度?

python - 在 fbprophet 模型中使用多个自变量

python - Pytesseract image_to_string空输出

python - 在测试和核心之间共享模块 - 适当的项目结构

python - 迭代器 vs 生成器 vs 可迭代对象

python-3.x - 如何抓取分页页面?单击下一页时没有 url 更改

python - 分割后选择特定的数组内容[Python2.7]