enable.tools.pyface.command_tool module

Command Tools

This module provides classes for tools that work with Pyface’s Undo/Redo Command stack.

class enable.tools.pyface.command_tool.BaseCommandTool(component=None, **traits)[source]

Bases: enable.base_tool.BaseTool

A tool which can push commands onto a command stack

This is a base class for all tools that want to be able to issue undoable commands.

class enable.tools.pyface.command_tool.BaseUndoTool(component=None, **traits)[source]

Bases: enable.tools.pyface.command_tool.BaseCommandTool

A tool with access to an UndoManager

This is a base class for all tools that want to be able to access undo and redo functionality.

redo()[source]

Call redo on the UndoManager

undo()[source]

Call undo on the UndoManager