Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 def setCaption(self, val):
     self.lblMonthYear.Caption = val
     self.layout()
     callAfterInterval(100, self.Parent.Sizer.layout)
Example #4
0
 def _setYear(self, val):
     self._year = val
     callAfterInterval(50, self.afterDateChanged)
Example #5
0
 def _setMonth(self, val):
     self._month = val
     callAfterInterval(50, self.afterDateChanged)
Example #6
0
 def onLostFocus(self, evt):
     callAfterInterval(10, self.Parent.lostFocus)
Example #7
0
 def onGotFocus(self, evt):
     callAfterInterval(10, self.Parent.gotFocus)
Example #8
0
 def setCaption(self, val):
     self.lblMonthYear.Caption = val
     self.layout()
     callAfterInterval(100, self.Parent.Sizer.layout)
Example #9
0
 def _setYear(self, val):
     self._year = val
     callAfterInterval(50, self.afterDateChanged)
Example #10
0
 def _setMonth(self, val):
     self._month = val
     callAfterInterval(50, self.afterDateChanged)
Example #11
0
 def onLostFocus(self, evt):
     callAfterInterval(10, self.Parent.lostFocus)
Example #12
0
 def onGotFocus(self, evt):
     callAfterInterval(10, self.Parent.gotFocus)