GimpUi.EnumLabel

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GimpUi.EnumLabel GimpUi.EnumLabel Gtk.Buildable->Gtk.Widget Gtk.Label Gtk.Label Gtk.Label->GimpUi.EnumLabel Gtk.Misc Gtk.Misc Gtk.Misc->Gtk.Label Gtk.Widget->Gtk.Misc

Subclasses:

None

Methods

Inherited:

Gtk.Label (50), Gtk.Misc (4), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (enum_type, value)

set_value (value)

Virtual Methods

Inherited:

Gtk.Label (4), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Label (20), Gtk.Misc (4), Gtk.Widget (39)

Name

Type

Flags

Short Description

enum-type

GObject.GType

r/w/co

The type of the displayed enum

enum-value

int

w/c

The enum value to display

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Label (5), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Label (5), Gtk.Widget (69), GObject.Object (1)

Class Details

class GimpUi.EnumLabel(*args, **kwargs)
Bases:

Gtk.Label

Abstract:

No

Structure:

GimpUi.EnumLabelClass

A Gtk.Label subclass that displays an enum value.

classmethod new(enum_type, value)
Parameters:
Returns:

a new GimpUi.EnumLabel.

Return type:

Gtk.Widget

New in version 2.4.

set_value(value)
Parameters:

value (int) – an enum value

New in version 2.4.

Property Details

GimpUi.EnumLabel.props.enum_type
Name:

enum-type

Type:

GObject.GType

Default Value:

<GType void>

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The GObject.GType of the enum.

New in version 2.8.

GimpUi.EnumLabel.props.enum_value
Name:

enum-value

Type:

int

Default Value:

0

Flags:

WRITABLE, CONSTRUCT

The value to display.

New in version 2.8.