widgets.
base widget class.
Bases: cairotft.widgets.base.BaseWidget
Base class for all Animated widgets.
see BaseWidget for All BaseWidget variables
Variables: | interval_time (float) – (float) interval between two frames (in seconds) |
---|
TODO: add transition support in BaseAnimatedWidget
Initialisation of the base animated widget.
Parameters: |
|
---|
Bases: builtins.object
Base class for all widgets.
Variables: |
|
---|
Initialisation of the base widget.
Parameters: |
---|
BlinkIcon widget.
Bases: cairotft.widgets.base.BaseAnimatedWidget
A svg icon that can blink.
Initialisation of the bliking Icon.
Parameters: |
|
---|
Text Marquee widget.
Bases: builtins.object
A text marquee widget.
Initialisation of the Marquee.
Parameters: |
|
---|
based on the font size, calculate the width of the text.
And eventually shrink the name if too long.
draw the text in the smooth text buffer.
This is not display, only drawed in the smooth buffer.
Change the background color.
Parameters: | background_color (tuple) – a tuple of 4 float representing the rgba value of the background color to repaint the icon. |
---|
Change the text color.
Parameters: | color (tuple) – a tuple of 4 float representing the rgba value of the text color. |
---|