Implements a command on the undo/redo stack.
A wx.richtext.RichTextCommand object contains one or more wx.richtext.RichTextAction objects, allowing aggregation of a number of operations into one command.
See also
Constructor for one action. |
|
Adds an action to the action list. |
|
Clears the action list. |
|
Performs the command. |
|
Returns the action list. |
|
Undoes the command. |
See |
Possible constructors:
RichTextCommand(name : str, id : RichTextCommandId, buffer :
RichTextBuffer, container : RichTextParagraphLayoutBox, ctrl :
RichTextCtrl, ignoreFirstTime: bool=False) -> None
RichTextCommand(name : str) -> None
Implements a command on the undo/redo stack.
__init__ (self, name : str, id : RichTextCommandId, buffer : RichTextBuffer, container : RichTextParagraphLayoutBox, ctrl : RichTextCtrl, ignoreFirstTime: bool=False)
Constructor for one action.
name (string)
id (RichTextCommandId)
buffer (wx.richtext.RichTextBuffer)
container (wx.richtext.RichTextParagraphLayoutBox)
ctrl (wx.richtext.RichTextCtrl)
ignoreFirstTime (bool)
None
__init__ (self, name : str)
Constructor for multiple actions.
name (string)
None
Adds an action to the action list.
action (wx.richtext.RichTextAction)
None
Clears the action list.
None
Performs the command.
bool
Returns the action list.
RichTextActionList
Undoes the command.
bool
See GetActions