.. include:: headings.inc .. currentmodule:: adv .. _adv.CalendarEvent: ========================================================================================================================================== |phoenix_title| **CalendarEvent** ========================================================================================================================================== The :ref:`adv.CalendarEvent` class is used together with :ref:`adv.CalendarCtrl`. .. seealso:: :ref:`adv.CalendarCtrl` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **CalendarEvent** .. raw:: html

Inheritance diagram of CalendarEvent

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~CalendarEvent.__init__` :meth:`~CalendarEvent.GetWeekDay` Returns the week day on which the user clicked in ``EVT_CALENDAR_WEEKDAY_CLICKED`` handler. :meth:`~CalendarEvent.SetWeekDay` Sets the week day carried by the event, normally only used by the library internally. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~CalendarEvent.WeekDay` See :meth:`~CalendarEvent.GetWeekDay` and :meth:`~CalendarEvent.SetWeekDay` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: CalendarEvent(DateEvent) The CalendarEvent class is used together with CalendarCtrl. **Possible constructors**:: CalendarEvent() CalendarEvent(win, dt, type) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` **~~~** **__init__** `(self, win, dt, type)` :param `win`: :type `win`: Window :param `dt`: :type `dt`: DateTime :param `type`: :type `type`: EventType **~~~** .. method:: GetWeekDay(self) Returns the week day on which the user clicked in ``EVT_CALENDAR_WEEKDAY_CLICKED`` handler. It doesn't make sense to call this function in other handlers. :rtype: `DateTime.WeekDay` .. method:: SetWeekDay(self, day) Sets the week day carried by the event, normally only used by the library internally. :param `day`: :type `day`: DateTime.WeekDay .. attribute:: WeekDay See :meth:`~CalendarEvent.GetWeekDay` and :meth:`~CalendarEvent.SetWeekDay`