Handy.EnumValueObject

g GObject.Object GObject.Object Handy.EnumValueObject Handy.EnumValueObject GObject.Object->Handy.EnumValueObject

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (enum_value)

get_name ()

get_nick ()

get_value ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Handy.EnumValueObject(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Handy.EnumValueObjectClass

An object representing an [struct`GObject`.EnumValue].

The HdyEnumValueObject object represents a [struct`GObject`.EnumValue], allowing it to be used with [iface`Gio`.ListModel].

New in version 1.0.

classmethod new(enum_value)
Parameters:

enum_value (GObject.EnumValue) –

Returns:

the newly created HdyEnumValueObject

Return type:

Handy.EnumValueObject

Creates a new HdyEnumValueObject.

New in version 1.0.

get_name()
Returns:

the name of self

Return type:

str

Gets the name of self.

New in version 1.0.

get_nick()
Returns:

the nick of self

Return type:

str

Gets the nick of self.

New in version 1.0.

get_value()
Returns:

the value of self

Return type:

int

Gets the value of self.

New in version 1.0.