Tkdnd--does anyone use it?

K

Kevin Walzer

Does anyone use the Tkdnd module that comes with Tkinter to allow
drag-and-drop of Tkinter widgets in your application? (Not the binary
extension that hooks into Xdnd and OLE-dnd on Windows.) I've looked at
the various documents for Tkdnd, and it looks somewhat complicated,
particulary if you want to use it outside of the canvas widget; I've
also found very few examples of its actual use (as opposed to sample
code snippets). I'm curious if anyone is actually using it in a
production application and, if so, what your experience with it is.
 
K

klappnase

Kevin said:
Does anyone use the Tkdnd module that comes with Tkinter to allow
drag-and-drop of Tkinter widgets in your application? (Not the binary
extension that hooks into Xdnd and OLE-dnd on Windows.) I've looked at
the various documents for Tkdnd, and it looks somewhat complicated,
particulary if you want to use it outside of the canvas widget; I've
also found very few examples of its actual use (as opposed to sample
code snippets). I'm curious if anyone is actually using it in a
production application and, if so, what your experience with it is.

I use it in phonoripper
(http://klappnase.zexxo.net/phonoripper.index.html) to drag files from
a
directory tree into a listbox. I found it to be less complicated than
it looked at a first glance.
If you like you can have a look at the DirTree and TrackTree modules to
see how i use it.
(I actually use Treectrl widgets instead of a Tkinter.Listbox and a
slightly modified
Tkdnd module, but the logic is the same).

Regards

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top