atk.EditableTextthe ATK interface implemented by components containing
user-editable text content. Synopsisatk.EditableTextgobject.GInterfaceset_run_attributesattrib_setstart_offsetend_offsetset_text_contentsstringinsert_textstringlengthpositioncopy_textstart_posend_poscut_textstart_posend_posdelete_textstart_posend_pospaste_textpositionDescriptionatk.EditableText
should be implemented by UI components which contain text which the user
can edit, via the atk.Object
corresponding to that component (see atk.Object).atk.EditableText
is a subclass of atk.Text, and as
such, an object which implements atk.EditableText
is by definition an atk.Text
implementor as well.Methodsatk.EditableText.set_run_attributesset_run_attributesattrib_setstart_offsetend_offsetattrib_set :a sequence of 2-tuples containing name-value
string pairs.start_offset :start of range in which to set
attributesend_offset :end of range in which to set
attributesReturns :True if attributes were
successfully set for the specified range, otherwise
FalseSets the attributes for a specified range. See the (such as
atk.TEXT_ATTR_LEFT_MARGIN) for examples of
attributes that can be set. Note that other attributes that do not
have corresponding may also be set for
certain text widgets.atk.EditableText.set_text_contentsset_text_contentsstringstring :string to set for text contents of the
textSet text contents of the text.atk.EditableText.insert_textinsert_textstringlengthpositionstring :the text to insertlength :the length of text to insert, in bytesposition :the position at which to insert the textReturns :the position after the newly inserted
text.Insert text at a given position.atk.EditableText.copy_textcopy_textstart_posend_posstart_pos :start positionend_pos :end positionCopy text from start_pos up to, but not
including end_pos to the clipboard.atk.EditableText.cut_textcut_textstart_posend_posstart_pos :start positionend_pos :end positionCopy text from start_pos up to, but not
including end_pos to the clipboard and then
delete from the widget.atk.EditableText.delete_textdelete_textstart_posend_posstart_pos :start positionend_pos :end positionDelete text start_pos up to, but not
including end_pos.atk.EditableText.paste_textpaste_textpositionposition :position to pastePaste text from clipboard to the specified
position.