module utils.drag_and_drop

Global Variables

  • TYPE_CHECKING
  • PYQT6
  • PYQT5
  • PYSIDE2
  • PYSIDE6

function accepts_file_drops

accepts_file_drops(extensions: 'str | [str]')

Decorator that enables drag-and-drop on a QWidget. Accepts a str or a list of strings of the valid file extensions.


function draggable

draggable(target)

class PreviewDrag

method PreviewDrag.__init__

__init__(source, mimedata=None)

This file was automatically generated via lazydocs.