Atspi.EditableText¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
None
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Atspi.EditableText¶
- Bases:
- copy_text(start_pos, end_pos)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Copies text from an
Atspi.EditableText
object into the system clipboard.
- cut_text(start_pos, end_pos)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deletes text from an
Atspi.EditableText
object, copying the excised portion into the system clipboard.
- delete_text(start_pos, end_pos)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deletes text from an
Atspi.EditableText
object, without copying the excised portion into the system clipboard.
- insert_text(position, text, length)¶
- Parameters:
position (
int
) – aint
indicating the character offset at which to insert the new text.text (
str
) – a string representing the text to insert, in UTF-8 encoding.length (
int
) – the number of characters of text to insert, in bytes. If the byte count of text is less than or equal to length, the entire contents of text will be inserted.
- Raises:
- Returns:
- Return type:
Inserts text into an
Atspi.EditableText
object. As with all character offsets, the specified position may not be the same as the resulting byte offset, since the text is in a variable-width encoding.
- paste_text(position)¶
- Parameters:
position (
int
) – aint
indicating the character offset at which to insert the new text.- Raises:
- Returns:
- Return type:
Inserts text from the system clipboard into an
Atspi.EditableText
object. As with all character offsets, the specified position may not be the same as the resulting byte offset, since the text is in a variable-width encoding.
- set_text_contents(new_contents)¶
- Parameters:
new_contents (
str
) – a character string, encoded in UTF-8, which is to become the new text contents of theAtspi.EditableText
object.- Raises:
- Returns:
- Return type:
Replace the entire text contents of an
Atspi.EditableText
object.