Page Contents

This Page

Calendar

class enaml.widgets.calendar.Calendar(parent=None, **kwargs)[source]

Bases: enaml.widgets.bounded_date.BoundedDate

A bounded date control which edits a Python datetime.date using a widget which resembles a calendar.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_calendar.QtCalendar

class enaml.qt.qt_calendar.QtCalendar(object_id, parent, session)[source]

Bases: enaml.qt.qt_bounded_date.QtBoundedDate

A Qt implementation of an Enaml Calendar.

create_widget(parent, tree)[source]

Create the underlying calender widget.

create(tree)[source]

Create and initialize the underlying widget.

get_date()[source]

Return the current date in the control.

Returns:result (QDate) – The current control date as a QDate object.
set_date(date)[source]

Set the widget’s current date.

Parameters:date (QDate) – The QDate object to use for setting the date.
set_max_date(date)[source]

Set the widget’s maximum date.

Parameters:date (QDate) – The QDate object to use for setting the maximum date.
set_min_date(date)[source]

Set the widget’s minimum date.

Parameters:date (QDate) – The QDate object to use for setting the minimum date.

Wx

Inheritance diagram of enaml.wx.wx_calendar.WxCalendar

class enaml.wx.wx_calendar.WxCalendar(object_id, parent, session)[source]

Bases: enaml.wx.wx_bounded_date.WxBoundedDate

A Wx implementation of an Enaml Calendar.

create_widget(parent, tree)[source]

Creates the wx.calendar.CalendarCtrl widget.

create(tree)[source]

Create and initialize the the calendar widget.

get_date()[source]

Return the current date in the control.

Returns:result (wxDateTime) – The current control date as a wxDateTime object.
set_date(date)[source]

Set the widget’s current date.

Parameters:date (wxDateTime) – The wxDateTime object to use for setting the date.
set_max_date(date)[source]

Set the widget’s maximum date.

Parameters:date (wxDateTime) – The wxDateTime object to use for setting the maximum date.
set_min_date(date)[source]

Set the widget’s minimum date.

Parameters:date (wxDateTime) – The wxDateTime object to use for setting the minimum date.