20 def Text(self) -> str:
25 def Text(self, value : str):
88 def __init__(self, source : Command_TextObject, commandName : str, operation, *arguments) ->
None:
95 if len(arguments) == 2:
129 output =
"<NO COMMAND>"
str ToString(self)
Returns the TextObject to a string.
_startingText
Starting string text so we can reset the text to a known point.
def Reset(self)
Resets the TextObject to the starting string.
def __init__(self, str text)
Constructs a text object with an initial string.
_text
The text that can change.
Represents an operation that can be applied to a TextObject.
str ToString(self)
Return this command as a string representation.
def Execute(self)
Execute the command on the TextObject.
None __init__(self, Command_TextObject source, str commandName, operation, *arguments)
Constructor for a command that applies an operation to a TextObject, where the operation takes zero o...
_argument2
The second argument to the two-parameter operation.
_argument1
The first argument to the two-parameter operation.
_commandName
Easy-to-read command name.
_two_parameter_operation
Two parameter operation to apply to the receiver.
_receiver
The receiver of the command.
_no_parameter_operation
No parameter operation to apply to the receiver.