TkinterDnD2 is a python wrapper for George Petasis' tkDnD Tk extension version 2.
Please note that it will not work with the (now obsolete) tkdnd1.0-series.
tkDnD2 adds native drag and drop support for windows, unix and Mac OSX to Tk. TkinterDnD2 makes this functionality available for Tkinter.
TkinterDnD2 works with both Python2 and Python3.
If you want to use TkinterDnD2 you will of course have to install tkDnD2 first. Windows binaries as well as the sources can be found here.
For best results please make sure to use version 2.8 (or any newer version, if available) of the tkDnD library.
The TkinterDnD2 package contains a number of simple demo scripts with usage examples.

Besides the classes described in the reference manual the package defines the following (hopefully useful) constants:
PRIVATE = 'private'
NONE = 'none'
ASK = 'ask'
COPY = 'copy'
MOVE = 'move'
LINK = 'link'
REFUSE_DROP = 'refuse_drop'
DND_ALL = '*'
FileGroupDescriptor = 'FileGroupDescriptor - FileContents'
FileGroupDescriptorW = 'FileGroupDescriptorW - FileContents'

Any comments and bug reports are highly appreciated.
Please contact: Michael Lange <klappnase (at) users (dot) sourceforge (dot) net>


TkinterDnD is released in the public domain.


Here you can download the latest version of TkinterDnD2.

Hosted by:

Get TkinterDnD at Fast, secure and Free Open Source software downloads