traitsui.editors.dnd_editor module

Defines the editor factory for a drag-and-drop editor. A drag-and-drop editor represents its value as a simple image which, depending upon the editor style, can be a drag source only, a drop target only, or both a drag source and a drop target.

class traitsui.editors.dnd_editor.DNDEditor(*args, **traits)[source]

Bases: EditorFactory

Editor factory for drag-and-drop editors.

disabled_image = Image

The image to use when the target is disabled:

image = Image

The image to use for the target:

traitsui.editors.dnd_editor.ToolkitEditorFactory

alias of DNDEditor