拖放在Tkinter? [英] Drag and Drop in Tkinter?
问题描述
在tkinter中完成拖放的正确/官方/正确/推荐的方法是什么?我的文档部分24.1.1包括:
Tkdnd Tkinter的拖放支持。这是实验性的,当$ t
$ b,但是我可以找到没有其他官方文档。 Tkinter是否有拖放支持?这是否依赖于版本?这是否还没有包含在tk(tcl)中,然后将过滤到tkinter?
我应该强调,我在谈论不同应用程序之间的拖放,我目前使用的是python 2(尽管依赖于python 3的任何解决方案仍然是有意义的)。
解决方案Tkinter没有内置支持在应用程序之间拖放。 Tkdnd是AFAIK,唯一的方法是完成它,而无需自己编写低级代码。
What is the correct/official/proper/recommended way of accomplishing drag/drop in tkinter? My documentation section 24.1.1 includes:
Tkdnd Drag-and-drop support for Tkinter. This is experimental and should become deprecated when it is replaced with the Tk DND.
but I can find no other official documentation. Does Tkinter have drag/drop support at all? Is this something version dependant? Is this something not yet included in tk(tcl) which will then filter through to tkinter?
I should stress that I am talking about drag/drop between different applications and that I am currently using python 2 (although any solution which relies on python 3 would still be of interest).
解决方案Tkinter has no built-in support for dragging and dropping between applications. Tkdnd is, AFAIK, the only way to accomplish it without writing the low level code yourself.
这篇关于拖放在Tkinter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!