Skip to main content

Calendar Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Month calendar.

class Calendar(Widget): ...

Constructors​

Calendar(Widget parent)​

def __init__(self, parent: Widget):

Create a calendar inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Methods​

SetShowedDate(int year, int month)​

def SetShowedDate(self, year: int, month: int) -> None:

Set the month shown by the calendar.

ParameterTypeDescription
yearintFour-digit year.
monthintMonth, 1 (January) to 12 (December).

SetToday(int year, int month, int day)​

def SetToday(self, year: int, month: int, day: int) -> None:

Set the day that is highlighted as "today".

ParameterTypeDescription
yearintFour-digit year.
monthintMonth, 1-12.
dayintDay of month, 1-31.