GimpUi.Labeled¶
- Subclasses:
GimpUi.LabelColor,GimpUi.LabelEntry,GimpUi.LabelIntWidget,GimpUi.LabelSpin,GimpUi.LabelStringWidget
Methods¶
- Inherited:
Gtk.Grid (21), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
|
|
|
|
|
Virtual Methods¶
|
Properties¶
- Inherited:
Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The text of the label part of this widget |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class GimpUi.Labeled(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This widget is a
Gtk.Gridshowing aGtk.Labelused as mnemonic on another widget.- get_label()¶
-
This function returns the
Gtk.Labelpacked in self. This can be useful if you need to customize some aspects of the widget.
- get_text()¶
- Returns:
the label text as entered, which includes pango markup and mnemonics similarly to
Gtk.Label.get_label().- Return type:
This function will return exactly what you entered with
GimpUi.Labeled.set_text() or through the “label” property because this class expects labels to have mnemonics (and allows Pango formatting). To obtain instead the text as displayed with mnemonics and markup removed, call:gtk_label_get_text (GTK_LABEL (gimp_labeled_get_label (@labeled)));
- set_text(text)¶
- Parameters:
text (
str) – label text with Pango markup and mnemonic.
This is the equivalent of running
Gtk.Label.set_markup_with_mnemonic() on theGtk.Labelas aGimpUi.Labeledexpects a mnemonic. Pango markup are also allowed.
- do_mnemonic_widget_changed(widget) virtual¶
- Parameters:
widget (
Gtk.Widget) –
Signal Details¶
- GimpUi.Labeled.signals.mnemonic_widget_changed(labeled, object)¶
- Signal Name:
mnemonic-widget-changed- Flags:
- Parameters:
labeled (
GimpUi.Labeled) – The object which received the signalobject (
Gtk.Widget) –