AgsGui.Led

g AgsGui.Led AgsGui.Led GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Widget->AgsGui.Led

Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

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

class

new (segment_width, segment_height)

get_segment_height ()

get_segment_width ()

is_active ()

set_active (active)

set_segment_height (segment_height)

set_segment_width (segment_width)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

segment-height

int

r/w

The led’s segment height

segment-width

int

r/w

The led’s segment width

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Name

Type

Access

Description

active

bool

r

segment_height

int

r

segment_width

int

r

widget

Gtk.Widget

r

Class Details

class AgsGui.Led(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

AgsGui.LedClass

classmethod new(segment_width, segment_height)
Parameters:
  • segment_width (int) – the width of the segment

  • segment_height (int) – the height of the segment

Returns:

the new AgsGui.Led

Return type:

AgsGui.Led

Create a new instance of AgsGui.Led.

New in version 3.0.0.

get_segment_height()
Returns:

the segment height

Return type:

int

Get segment height.

New in version 4.0.0.

get_segment_width()
Returns:

the segment width

Return type:

int

Get segment width.

New in version 4.0.0.

is_active()
Returns:

True if led active, otherwise False

Return type:

bool

Set self to active state.

New in version 3.2.0.

set_active(active)
Parameters:

active (bool) – True if active, otherwise False

Set self active by active.

New in version 3.0.0.

set_segment_height(segment_height)
Parameters:

segment_height (int) – the segment height

Set segment height.

New in version 4.0.0.

set_segment_width(segment_width)
Parameters:

segment_width (int) – the segment width

Set segment width.

New in version 4.0.0.

Property Details

AgsGui.Led.props.segment_height
Name:

segment-height

Type:

int

Default Value:

8

Flags:

READABLE, WRITABLE

The led’s segment height.

New in version 4.0.0.

AgsGui.Led.props.segment_width
Name:

segment-width

Type:

int

Default Value:

12

Flags:

READABLE, WRITABLE

The led’s segment width.

New in version 4.0.0.