DearPyGui-DragAndDrop
Working Drag-and-drop for DearPyGui, Windows only
How to install/use
-
Install the DearPyGui-DragAndDrop package:
pip install DearPyGui-DragAndDrop -
Import and then initialize the library after
dpg.create_context():
import dearpygui.dearpygui as dpg
import DearPyGui_DragAndDrop as dpg_dnd
dpg.create_context()
dpg_dnd.initialize()
- That's it, just set your function for
dropand your minimal use case is ready:
import dearpygui.dearpygui as dpg
import DearPyGui_DragAndDrop as dpg_dnd
dpg.create_context()
dpg_dnd.initialize()
dpg.create_viewport(title="Drag and drop example", width=600, height=600)
def drop(data, keys):
print(f'{data}')
print(f'{keys}')
dpg_dnd.set_drop(drop)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
More examples of use are in the Examples folder
Supported Formats
- File(s) paths (will be in the form of a
list of strings) - Text (will be
string)
Everything else will be None or will be a string
TODO list:
- Documentation and code/functions comments
- Add support for more and other data types: maybe this is the right list
Metadata
Release files for DearPyGui-DragAndDrop 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| DearPyGui-DragAndDrop-1.0.0.tar.gz | 5.0 kB | Without provenance | Details for DearPyGui-DragAndDrop-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| DearPyGui_DragAndDrop-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for DearPyGui_DragAndDrop-1.0.0-py3-none-any.whl |
Total release size: 11.5 kB
Release files / DearPyGui-DragAndDrop-1.0.0.tar.gz
| Download URL | DearPyGui-DragAndDrop-1.0.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
058765828f0e5613225bf587ea6f2f029ad0797a3ab992ae37254266d95a0e36
|
|
BLAKE2b-256 checksum How to use checksums |
db92ee6d8f0f91bd072ac1379803076b54c205563ff29137279f015d28b67c32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.15
|
Release files / DearPyGui_DragAndDrop-1.0.0-py3-none-any.whl
| Download URL | DearPyGui_DragAndDrop-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a94d635e0b3baa930b4b98d5aa617d7406eeab7b488eae612ae678815dace565
|
|
BLAKE2b-256 checksum How to use checksums |
4e12d766b0a8fa495a4936d4c57d810b144260d9a17d97d7484bbdd6cc307666
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.15
|
Security for DearPyGui-DragAndDrop 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.