CalendarView

Screenshot

Calendarview - Reference - Enaml-native - CodeLV

Example

from datetime import datetime
from enamlnative.widgets.api import *

enamldef ContentView(ScrollView):
    Flexbox:
        flex_direction = "column"

        CalendarView: cv:
            pass
        TextView:
            text << f"Date: {cv.date}"
        CalendarView:
            min_date = datetime(1982, 3, 1)
            max_date = datetime.now()
            date = datetime.now()

Declaration

class enamlnative.widgets.calendar_view.CalendarView(parent=None, **kwargs)[source]

Bases: enamlnative.widgets.frame_layout.FrameLayout

CalendarView is a view group that displays child views in relative positions.

date

Selected date

max_date

Max date

min_date

Min date

first_day_of_week

First day of week

proxy

A reference to the ProxyLabel object.

Android Implementation

class enamlnative.android.android_calendar_view.AndroidCalendarView[source]

Bases: enamlnative.android.android_frame_layout.AndroidFrameLayout, enamlnative.widgets.calendar_view.ProxyCalendarView

An Android implementation of an Enaml ProxyCalendarView.

widget

A reference to the widget created by the proxy.

create_widget()[source]

Create the underlying widget.

init_widget()[source]

Initialize the underlying widget.

No iOS implementation found.