:right-sidebar: True EditableLabel =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: EditableLabel(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget`, :class:`~gi.repository.Gtk.Editable` :Constructors: :: EditableLabel(**properties) new(str:str) -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: EditableLabel :no-index: .. classmethod:: new(str: str) -> ~gi.repository.Gtk.Widget Creates a new ``GtkEditableLabel`` widget. :param str: the text for the label Methods ------- .. rst-class:: interim-class .. class:: EditableLabel :no-index: .. method:: get_editing() -> bool Returns whether the label is currently in “editing mode”. .. method:: start_editing() -> None Switches the label into “editing mode”. .. method:: stop_editing(commit: bool) -> None Switches the label out of “editing mode”. If ``commit`` is :const:`True`, the resulting text is kept as the :obj:`~gi.repository.Gtk.Editable.props.text` property value, otherwise the resulting text is discarded and the label will keep its previous :obj:`~gi.repository.Gtk.Editable.props.text` property value. :param commit: whether to set the edited text on the label Properties ---------- .. rst-class:: interim-class .. class:: EditableLabel :no-index: .. attribute:: props.editing :type: bool This property is :const:`True` while the widget is in edit mode.