Skip to content

fontlabapp.qt.calendars.classic.formats · declarations 001

Back to fontlabapp.qt.calendars.classic.formats

apply

apply(qt: Any, calendar: Any, *, year: int, month: int, weekday: int, weekend: int, header: int, special: bool, previous: tuple[Any, ...] = ()) -> tuple[Any, ...]

Set all advertised formats; return the exact newly owned date markers.

first_friday

first_friday(year: int, month: int) -> int

Return the month's first Friday; invalid years/months refuse via date.

surface

surface(qt: Any, calendar: Any) -> None

Keep explicit named text colours readable on this owned date surface.

The surrounding form/report retain their host palette. Copy this widget's palette before changing its date-surface roles; never change application or parent palettes, preferences, stylesheets or global theme settings.