Basics
Guides
API Reference
Basics
Guides
API Reference
[28:7] extends: object
Allows users to edit the displayed text by switching to an “edit mode”.
GtkEditableLabel does not have API of
its own, but it implements the [iface@Gtk.Editable] interface. The default
bindings for activating the edit mode is to click or press the Enter key. The
default bindings for leaving the edit mode are the Enter key (to save the
results) or the Escape key (to cancel the editing). # Shortcuts and Gestures
GtkEditableLabel supports the following keyboard shortcuts: -
Enter starts editing. - Escape stops editing. # Actions
GtkEditableLabel defines a set of built-in actions: - editing.starts
switches the widget into editing mode. - editing.stop switches the widget
out of editing mode. # CSS nodes editablelabel[.editing] ╰── stack ├── label ╰── text GtkEditableLabel has a main node with the name
editablelabel. When the entry is in editing mode, it gets the .editing style
class. For all the subnodes added to the text node in various situations, see
[class@Gtk.Text].
EditableLabel (str = null)
Creates a new
GtkEditableLabelwidget.
str is the text for the label.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.asEditable ()
Wraps this handle as
Editable.
A Editable object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setEditing (bool Value)
This property is %TRUE while the widget is in edit mode.
Value is the new property value.None.get_editing ()
Returns whether the label is currently in “editing mode”.
start_editing ()
Switches the label into “editing mode”.
None.stop_editing (bool commit)
Switches the label out of “editing mode”. If @commit is %TRUE, the resulting text is kept as the [property@Gtk.Editable:text] property value, otherwise the resulting text is discarded and the label will keep its previous [property@Gtk.Editable:text] property value.
commit is whether to set the edited text on the label.None.[213:14] static extends: object
Generated metadata helpers for EditableLabel class surfaces.
properties ()
Returns property metadata for
EditableLabel.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.