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/
安装后,启动时需要调用w