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.EditableTextshould be implemented by UI components which contain text which the user can edit, via the- Atk.Objectcorresponding to that component (see- Atk.Object).- Atk.EditableTextis a subclass of- Atk.Text, and as such, an object which implements- Atk.EditableTextis by definition an- Atk.Textimplementor 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 paste- Paste text from clipboard to specified position. 
 - 
set_run_attributes(attrib_set, start_offset, end_offset)[source]¶
- Parameters: - Returns: - Trueif attributes successfully set for the specified range, otherwise- False- 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¶
- 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 paste- Paste text from clipboard to specified position. 
 - 
do_set_run_attributes(attrib_set, start_offset, end_offset) virtual¶
- Parameters: - Returns: - Trueif attributes successfully set for the specified range, otherwise- False- 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. 
 
-