def setFocusToDate(self, date): """Requerying the calendar if necessary, place cursor on date.""" try: self.date_obj_map[date].setFocus() except (KeyError, AttributeError): self.Year = date.year self.Month = date.month callAfterInterval(75, self.setFocusToDate, date)
def setCaption(self, val): self.lblMonthYear.Caption = val self.layout() callAfterInterval(100, self.Parent.Sizer.layout)
def _setYear(self, val): self._year = val callAfterInterval(50, self.afterDateChanged)
def _setMonth(self, val): self._month = val callAfterInterval(50, self.afterDateChanged)
def onLostFocus(self, evt): callAfterInterval(10, self.Parent.lostFocus)
def onGotFocus(self, evt): callAfterInterval(10, self.Parent.gotFocus)