EditableLabel

class EditableLabel(**properties: Any)

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget, Editable

Constructors:

EditableLabel(**properties)
new(str:str) -> Gtk.Widget

Constructors

class EditableLabel
classmethod new(str: str) Widget

Creates a new GtkEditableLabel widget.

Parameters:

str – the text for the label

Methods

class EditableLabel
get_editing() bool

Returns whether the label is currently in “editing mode”.

start_editing() None

Switches the label into “editing mode”.

stop_editing(commit: bool) None

Switches the label out of “editing mode”.

If commit is True, the resulting text is kept as the text property value, otherwise the resulting text is discarded and the label will keep its previous text property value.

Parameters:

commit – whether to set the edited text on the label

Properties

class EditableLabel
props.editing: bool

This property is True while the widget is in edit mode.