phoenix_title wx.richtext.RichTextCommand

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

wx.richtext.RichTextAction


class_hierarchy Class Hierarchy

Inheritance diagram for class RichTextCommand:

method_summary Methods Summary

__init__

Constructor for one action.

AddAction

Adds an action to the action list.

ClearActions

Clears the action list.

Do

Performs the command.

GetActions

Returns the action list.

Undo

Undoes the command.


property_summary Properties Summary

Actions

See GetActions


api Class API

class wx.richtext.RichTextCommand(Command)

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.


Methods

__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self, name : str, id : RichTextCommandId, buffer : RichTextBuffer, container : RichTextParagraphLayoutBox, ctrl : RichTextCtrl, ignoreFirstTime: bool=False)

Constructor for one action.

Parameters:
Return type:

None



__init__ (self, name : str)

Constructor for multiple actions.

Parameters:

name (string) –

Return type:

None





AddAction(self, action : RichTextAction)

Adds an action to the action list.

Parameters:

action (wx.richtext.RichTextAction) –

Return type:

None



ClearActions(self)

Clears the action list.

Return type:

None



Do(self)

Performs the command.

Return type:

bool



GetActions(self)

Returns the action list.

Return type:

RichTextActionList



Undo(self)

Undoes the command.

Return type:

bool


Properties

Actions

See GetActions