Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

DearPyGui-DragAndDrop

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

DearPyGui-DragAndDrop

Working Drag-and-Drop for DearPyGui, Windows only

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
1

DearPyGui-DragAndDrop

Working Drag-and-drop for DearPyGui, Windows only demo

How to install/use

  1. Install the DearPyGui-DragAndDrop package:
    pip install DearPyGui-DragAndDrop

  2. 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()
  1. That's it, just set your function for drop and 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:

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc