Advertisement
fornakter

Untitled

Jun 25th, 2022
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. class ShareCalendar(MDApp):
  2.     def build(self):
  3.         return Builder.load_file('sharecalendar.kv')
  4.  
  5.     def show_date_picker(self):
  6.         date_dialog = MDDatePicker()
  7.         date_dialog.bind(on_save=self.on_save, on_cancel=self.on_cancel)
  8.         date_dialog.open()
  9.  
  10.     def on_save(self, instance, value, date_range):
  11.         self.root.ids.date_button.text = str(value)
  12.  
  13.     def on_cancel(self, instance, value):
  14.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement