code: def init_widget(self):
          
          d = self.declaration
          w = self.widget
          date = d.date
          w.init(date.year, date.month-1, date.day, w.getId())
          super(AndroidDatePicker, self).init_widget()
          w.onDateChanged.connect(self.on_date_changed)
docs: Initialize the underlying widget.