Web Analytics Made Easy - Statcounter
Skip to content

Drag and Drop event data

DropEvent

DropEvent(
    window,
    key,
    element,
    drop_type,
    tkdnd_type
)

Parameter Descriptions

Name Type Default Description
drop_type str Type of drop. Values are constants DROP_TYPE_TEXT, DROP_TYPE_FILES, DROP_TYPE_ALL, DROP_TYPE_DROP_TYPE_UNKNOWN
element (sg.Element) The element object dropped onto
key str The key of the element dropped onto
tkdnd_type str Type of drop reported by tkinterdnd2 (for debugging or perhaps hacking until a bug gets fixed)
window (sg.Window) The window receiving the drop

Class Properties

This class has no public properties

Class Methods