AgsGui.LedArray¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Gtk.Box (4), Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The count of leds available |
||
r/w |
The height of segment |
||
r/w |
The width of segment |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
box |
r |
||
led |
r |
||
led_count |
r |
||
segment_height |
r |
||
segment_width |
r |
Class Details¶
- class AgsGui.LedArray(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(orientation, segment_width, segment_height, led_count)¶
- Parameters:
orientation (
Gtk.Orientation
) – the orientationsegment_width (
int
) – the width of the segmentsegment_height (
int
) – the height of the segmentled_count (
int
) – the LED count
- Returns:
the new
AgsGui.LedArray
- Return type:
Create a new instance of
AgsGui.LedArray
.New in version 3.0.0.
- get_led_count()¶
- Returns:
the led count
- Return type:
Get led count of self.
New in version 3.2.0.
- get_segment_height()¶
- Returns:
the led height
- Return type:
Set led height of self.
New in version 3.2.0.
- get_segment_width()¶
- Returns:
the led width
- Return type:
Get led width of self.
New in version 3.2.0.
- set_led_count(led_count)¶
- Parameters:
led_count (
int
) – the led count
Set led count of self.
New in version 3.0.0.
- set_segment_height(segment_height)¶
- Parameters:
segment_height (
int
) – the led height
Set led height of self.
New in version 3.2.0.
- set_segment_width(segment_width)¶
- Parameters:
segment_width (
int
) – the led width
Set led width of self.
New in version 3.2.0.
- unset_all()¶
Unset all led active.
New in version 3.0.0.
Property Details¶
- AgsGui.LedArray.props.led_count¶
-
The count of leds available.
New in version 3.0.0.
- AgsGui.LedArray.props.segment_height¶
-
The segment height of one led.
New in version 4.0.0.