Atk.EditableText¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Atk.EditableText¶
- Bases:
- Structure:
The ATK interface implemented by components containing user-editable text content.
Atk.EditableText
should be implemented by UI components which contain text which the user can edit, via theAtk.Object
corresponding to that component (seeAtk.Object
).Atk.EditableText
is a subclass ofAtk.Text
, and as such, an object which implementsAtk.EditableText
is by definition anAtk.Text
implementor as well.See [iface`AtkText`]
- copy_text(start_pos, end_pos)[source]¶
-
Copy text from start_pos up to, but not including end_pos to the clipboard.
- cut_text(start_pos, end_pos)[source]¶
-
Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.
- paste_text(position)[source]¶
- Parameters:
position (
int
) – position to paste
Paste text from clipboard to specified position.
- set_run_attributes(attrib_set, start_offset, end_offset)[source]¶
- Parameters:
- Returns:
True
if attributes successfully set for the specified range, otherwiseFalse
- Return type:
Sets the attributes for a specified range. See the ATK_ATTRIBUTE macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes that can be set. Note that other attributes that do not have corresponding ATK_ATTRIBUTE macros may also be set for certain text widgets.
- set_text_contents(string)[source]¶
- Parameters:
string (
str
) – string to set for text contents of self
Set text contents of self.
- do_copy_text(start_pos, end_pos) virtual¶
-
Copy text from start_pos up to, but not including end_pos to the clipboard.
- do_cut_text(start_pos, end_pos) virtual¶
-
Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.
- do_delete_text(start_pos, end_pos) virtual¶
-
Delete text start_pos up to, but not including end_pos.
- do_insert_text(string, length, position) virtual¶
- Parameters:
Insert text at a given position.
- do_paste_text(position) virtual¶
- Parameters:
position (
int
) – position to paste
Paste text from clipboard to specified position.
- do_set_run_attributes(attrib_set, start_offset, end_offset) virtual¶
- Parameters:
- Returns:
True
if attributes successfully set for the specified range, otherwiseFalse
- Return type:
Sets the attributes for a specified range. See the ATK_ATTRIBUTE macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes that can be set. Note that other attributes that do not have corresponding ATK_ATTRIBUTE macros may also be set for certain text widgets.