Package: gtk
Class gtk:calendar
SuperclassesDocumented Subclasses
None
Direct SlotsDetails The gtk:calendar widget displays a Gregorian calendar, one month at
a time. It can be created with the gtk:calendar-new function. The month and year currently displayed can be altered with the gtk:calendar-select-month function. The exact day can be selected from the displayed month using the gtk:calendar-select-day function. To place a visual marker on a particular day, use the gtk:calendar-mark-day function and to remove the marker, the gtk:calendar-unmark-day function. Alternative, all marks can be cleared with the gtk:calendar-clear-marks function. The way in which the calendar itself is displayed can be altered using the gtk:calendar-display-options function. The selected date can be retrieved from a gtk:calendar widget using the gtk:calendar-date function. Users should be aware that, although the Gregorian calendar is the legal calendar in most countries, it was adopted progressively between 1582 and 1929. Display before these dates is likely to be historically incorrect. Style Property Detailshorizontal-separation The horizontal-separation style property of type :int (Read) Separation between week headers and main area. Allowed values: >= 0 Default value: 4 inner-border The inner-border style property of type :int (Read) The spacing around the day/week headers and main area. Allowed values: >= 0 Default value: 4 vertical-separation The vertical-separation style property of type :int (Read) Space between day headers and main area. Allowed values: >= 0 Default value: 4 Signal DetailsThe "day-selected" signallambda (calendar) :run-first The "day-selected-double-click" signallambda (calendar) :run-first
The "month-changed" signallambda (calendar) :run-first The "next-month" signallambda (calendar) :run-firstThe gtk:calendar widget that received the signal. The signal is emitted when the user switched to the next month. The "next-year" signallambda (calendar) :run-first
The "prev-month" signallambda (calendar) :run-first
The "prev-year" signallambda (calendar) :run-first
| Returned bySlot Access FunctionsInherited Slot Access FunctionsSee also |
2025-07-14