tk drag & drop files
tkdnd
以windows为例
1. 下载tkdnd windows binary
http://sourceforge.net/projects/tkdnd/files/
放在anaconda安装目录下,类似Anaconda3\Library\lib\tkdnd
注意到,在lib文件夹中,其他的子文件夹,比如tk,里面也有pkgIndex.tcl文件
参考
https://wiki.tcl-lang.org/page/TCLLIBPATH#ece20ed7a2a1146a78e8c7a8f4037b14be4626a8ec7292ce129bede23140870b
其中的《Determining which directory to add to TCLLIBPATH》一节
2. 下载tkdnd python bindings
http://tkinterdnd.sourceforge.net/
运行python bindings的例子,即可成功运行
另外可以参考:
https://stackoverflow.com/questions/25427347/how-to-install-and-use-tkdnd-with-python-2-7-tkinter-on-osx
https://stackoverflow.com/questions/14267900/python-drag-and-drop-explorer-files-to-tkinter-entry-widget
关于tk的界面设计,可以使用PAGE工具
http://page.sourceforge.net/
安装后,启动时需要调用wish.exe,一般可以在anaconda目录中找到tck/tk的环境,修改一下桌面快捷方式即可
另一个tk界面设计工具,pygubu,使用类似XML格式定义界面,然后导入
https://stackoverflow.com/questions/14142194/is-there-a-gui-design-app-for-the-tkinter-grid-geometry#answer-29053928
https://github.com/alejandroautalan/pygubu
python tk 界面的项目示例
https://github.com/topics/tkinter-python?l=python&o=desc&s=
https://github.com/boseji/python-exe-gui-example
https://github.com/BlackRock404/Elise
python Qt 界面的项目示例
https://github.com/lmacken/liveusb-creator/
https://github.com/kovidgoyal/calibre
网友评论