Atk.EditableText - Interfaces - Atk 1.0 (original) (raw)

g Atk.EditableText Atk.EditableText GObject.GInterface GObject.GInterface GObject.GInterface->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

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 the Atk.Objectcorresponding 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.Textimplementor as well.

See [iface`AtkText`]

copy_text(start_pos, end_pos)[source]

Parameters:

Copy text from start_pos up to, but not including end_posto the clipboard.

cut_text(start_pos, end_pos)[source]

Parameters:

Copy text from start_pos up to, but not including end_posto 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.

insert_text(string, length, position)[source]

Parameters:

Insert text at a given position.

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, otherwise False

Return type:

bool

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_posto the clipboard.

do_cut_text(start_pos, end_pos) virtual

Parameters:

Copy text from start_pos up to, but not including end_posto 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:

True if attributes successfully set for the specified range, otherwise False

Return type:

bool

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.

do_set_text_contents(string) virtual

Parameters:

string (str) – string to set for text contents of text

Set text contents of text.