There is no built-in way to handle Drag and drop, and the only way to do this is to create the functionality yourself.
Quote:is there another way than bind?
The only possible way to do this without bind is to create a low level listener (and this is essentially a home-grown bind), and you don't want to go there unless you thoroughly understand the interrupt process. Bind is a way to capture interrupts within your code, and you need not be afraid of them.
for drag and drop, you need to bind:
- Button press (In tkinter this looks like <ButtonPress-1> )
- Button move (In tkinter this looks like <B1-Motion> )
- Button release (In tkinter this looks like <ButtonRelease-1>
It is not normal, nor needed to time the release, it's captured with the mouse up interrupt.
There are many examples of how to do this. It's quite simple to create your own,
you need create hooks for start, move and, stop activity.
Do a google search for: 'drag and drop for tkinter'
Please not that there is DRag and Drop support comming in ptrhon release 3.9.0 see:
https://docs.python.org/3.9/library/tkinter.dnd.html
expected release in just 4 days (Oct 5) or you can download and install the release
see:
https://pythoninsider.blogspot.com/2020/...Insider%29
you can find the code for this
if you can't find a suitable example with google,
come back, post your code, and I or another mod/admin will help you write one.
Finally: Perhaps it's time to consider my favorite wxpython, Kivy, or Qt5