TkinterDnD2

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_TEXT = 'DND_Text'
DND_FILES = 'DND_Files'
DND_ALL = '*'
CF_UNICODETEXT = 'CF_UNICODETEXT'
CF_TEXT = 'CF_TEXT'
CF_HDROP = 'CF_HDROP'
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>

License

TkinterDnD is released in the public domain.

Download

Here you can download the latest version of TkinterDnD2.


Hosted by:

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