Atk.EditableText¶
Implementations: | |
---|---|
Atk.NoOpObject |
Methods¶
copy_text (start_pos, end_pos) |
|
cut_text (start_pos, end_pos) |
|
delete_text (start_pos, end_pos) |
|
insert_text (string, length, position) |
|
paste_text (position) |
|
set_run_attributes (attrib_set, start_offset, end_offset) |
|
set_text_contents (string) |
Virtual Methods¶
do_copy_text (start_pos, end_pos) |
|
do_cut_text (start_pos, end_pos) |
|
do_delete_text (start_pos, end_pos) |
|
do_insert_text (string, length, position) |
|
do_paste_text (position) |
|
do_set_run_attributes (attrib_set, start_offset, end_offset) |
|
do_set_text_contents (string) |
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
-
class
Atk.
EditableText
¶ Bases: GObject.GInterface
Structure: Atk.EditableTextIface
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 also:
Atk.Text
-
copy_text
(start_pos, end_pos)[source]¶ Parameters: Copy text from start_pos up to, but not including end_pos to the clipboard.
-
cut_text
(start_pos, end_pos)[source]¶ Parameters: Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.
-
delete_text
(start_pos, end_pos)[source]¶ Parameters: Delete text start_pos up to, but not including end_pos.
-
paste_text
(position)[source]¶ Parameters: position ( int
) – position to pastePaste 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 selfSet text contents of self.
-
do_copy_text
(start_pos, end_pos) virtual¶ Parameters: Copy text from start_pos up to, but not including end_pos to the clipboard.
-
do_cut_text
(start_pos, end_pos) virtual¶ Parameters: 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¶ Parameters: 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 pastePaste 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.
-