Skip to content

MDDatePicker

Designed to be called from Python code only

Create class: self.<date_picker> = MDDatePicker()

Bind the OK button to a callback (passes in the time): self.<date_picker>.bind(date=self.get_date)

You can set the date that it opens to in two ways:

    By passing three integers (for year, month and day):

        self.\<date_picker\>.set_date_str(day, month, year)

     By passing in a datetime.date object

        self.<date_picker>.set_date(<datetime.date object>)

To open: self.<date_picker>.open()

Merge request reports