carbonkivy.uix.datepicker

Submodules

Attributes

UIX

filename

Classes

CDatePicker

Box layout class. See module documentation for more information.

CDatePickerCalendar

Implements the creation and addition of child widgets as declarative

CDatePickerDayButton

This mixin class provides

CDatePickerHeader

Box layout class. See module documentation for more information.

Package Contents

carbonkivy.uix.datepicker.UIX[source]
class carbonkivy.uix.datepicker.CDatePicker(**kwargs)[source]

Bases: carbonkivy.uix.boxlayout.CBoxLayout, carbonkivy.behaviors.ElevationBehavior

Box layout class. See module documentation for more information.

visibility
master
margin
pointer
today
current_month
current_year
month_name
selected_date
on_master(*args) None[source]
update_pos(instance: kivy.uix.widget.Widget, *args) None[source]
on_touch_down(touch)[source]

Receive a touch down event.

Parameters:
touch: MotionEvent class

Touch received. The touch is in parent coordinates. See relativelayout for a discussion on coordinate systems.

Returns:

bool If True, the dispatching of the touch event will stop. If False, the event will continue to be dispatched to the rest of the widget tree.

on_touch_up(touch)[source]

Receive a touch up event. The touch is in parent coordinates.

See on_touch_down() for more information.

on_touch_move(touch)[source]

Receive a touch move event. The touch is in parent coordinates.

See on_touch_down() for more information.

on_visibility(*args) None[source]
set_visibility(*args) None[source]
month_prev(*args) None[source]
month_next(*args) None[source]
year_prev(*args) None[source]
year_next(*args) None[source]
class carbonkivy.uix.datepicker.CDatePickerCalendar(**kwargs)[source]

Bases: carbonkivy.uix.gridlayout.CGridLayout

Implements the creation and addition of child widgets as declarative programming style.

selected_date
selected_button
on_selected_date(*args) None[source]
get_calendar_dates(year: str, month: str) None[source]

Get all dates for a 7x7 calendar grid including prev/next month dates

update_calendar(*args) None[source]
clear_selection(*args) None[source]
select_date(selected_date, button)[source]
class carbonkivy.uix.datepicker.CDatePickerDayButton(**kwargs)[source]

Bases: carbonkivy.uix.button.CButton, carbonkivy.behaviors.SelectableBehavior

This mixin class provides Button behavior. Please see the button behaviors module documentation for more information.

Events:
on_press

Fired when the button is pressed.

on_release

Fired when the button is released (i.e. the touch/click that pressed the button goes away).

day
month
year
is_today
is_current_month
date
callback_selection
on_press() None[source]
class carbonkivy.uix.datepicker.CDatePickerHeader(**kwargs)[source]

Bases: carbonkivy.uix.boxlayout.CBoxLayout

Box layout class. See module documentation for more information.

carbonkivy.uix.datepicker.filename[source]