A MoveTool that uses Pyface’s undo/redo infrastructure to create undoable move commands.
Move tool which pushes MoveCommands onto a CommandStack
This tool pushes a single MoveCommands onto its CommandStack at the end of the drag operation. If the drag is cancelled, then no command is issued, and no commands are issued during the drag operation.
Restore the component’s position if the drag is cancelled.
A drag is usually cancelled by receiving a mouse_leave event when end_drag_on_leave is True, or by the user pressing any of the cancel_keys.
End the drag operation, issuing a MoveCommands
Called when the drag operation starts.
The event parameter is the mouse event that established the drag operation; its x and y attributes correspond to the current location of the mouse, and not to the position of the mouse when the initial left_down or right_down event happened.
Whether or not subsequent moves can be merged with this one.