jinks_widgets.time_occurrence¶
This file contains the time occurrence widget class.
Classes
Class defining the time occurrence widget which counts to a certain list of times only showing hours and minutes. |
- class jinks_widgets.time_occurrence.TimeOccurrence¶
Bases:
objectClass defining the time occurrence widget which counts to a certain list of times only showing hours and minutes.
- width: int = 5¶
- height: int = 1¶
- color = 'BW'¶
- classmethod time_difference_string(target_datetime)¶
Calculate time difference and return as formatted string.
- classmethod display(density, times, text=None)¶
Ran by the jinks_core library to compute data and obtain the widget’s image.
- Return type:
Image