{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/4"}],"enrichment":{"capability":"Adds native drag-and-drop support to Tkinter applications on Windows, macOS, and Unix by wrapping the tkDnD Tk extension.","skillfed_tags":["gui-toolkit","drag-drop","tkinter"],"use_cases":["Build a file picker UI where users drag files onto a listbox or input field instead of using a file dialog.","Create a batch file processor that accepts dropped files and queues them for processing.","Integrate drag-and-drop into a PySimpleGUI or CustomTkinter application without replacing the framework's root window.","Add native drag-and-drop to a cross-platform desktop tool that must work on Windows, macOS, and Linux.","Enable drag-and-drop in a Tkinter-based data entry form to accept dropped documents or images."],"what_it_does":"tkinterdnd2 is a Python wrapper around the tkDnD Tk extension that enables native drag-and-drop functionality in Tkinter applications. It allows you to register widgets as drop targets and bind handlers to receive dropped files or data, with support for Windows, macOS, and Unix. The package bundles precompiled tkDnD binaries and handles the low-level Tcl/Tk integration so you can use drag-and-drop in standard Tkinter code or integrate it into frameworks like PySimpleGUI and CustomTkinter that manage their own Tk root windows.\n\nThe core workflow is straightforward: create a TkinterDnD.Tk() root (or call TkinterDnD.require() on an existing root), register widgets as drop targets using drop_target_register(), and bind a handler with dnd_bind() to process the dropped data. The package handles the quirk that dropped file paths arrive as a Tcl list string (with braces around paths containing spaces) rather than a Python list, providing a splitlist() utility to parse them correctly.","worth_installing":"Yes, if you need native drag-and-drop in a Tkinter application and are willing to work with a Pre-Alpha package. The low install friction, permissive license, active maintenance, and zero known vulnerabilities make it a reasonable choice. The main caveat is the Pre-Alpha status\u2014test thoroughly in your target environments before shipping, and verify that the bundled tkDnD binaries work on all platforms you support."},"id":"tkinterdnd2","links":{"html":"https://skillfed.io/packages/tkinterdnd2","md":"https://skillfed.io/packages/tkinterdnd2.md","pypi":"https://pypi.org/project/tkinterdnd2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-05","license_spdx":null,"license_treatment":"permissive","name":"tkinterdnd2","python_support":"supports_current","summary":"TkinterDnD2 is a python wrapper for George Petasis'' tkDnD Tk extension version 2"},"popularity":{"monthly_downloads":273913,"position":8195,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.2"}
