示例#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)
示例#2
0
文件: ui.py 项目: pmcnett/pmcalendar
 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)
示例#3
0
文件: ui.py 项目: pmcnett/pmcalendar
 def setCaption(self, val):
     self.lblMonthYear.Caption = val
     self.layout()
     callAfterInterval(100, self.Parent.Sizer.layout)
示例#4
0
文件: ui.py 项目: pmcnett/pmcalendar
 def _setYear(self, val):
     self._year = val
     callAfterInterval(50, self.afterDateChanged)
示例#5
0
文件: ui.py 项目: pmcnett/pmcalendar
 def _setMonth(self, val):
     self._month = val
     callAfterInterval(50, self.afterDateChanged)
示例#6
0
文件: ui.py 项目: pmcnett/pmcalendar
 def onLostFocus(self, evt):
     callAfterInterval(10, self.Parent.lostFocus)
示例#7
0
文件: ui.py 项目: pmcnett/pmcalendar
 def onGotFocus(self, evt):
     callAfterInterval(10, self.Parent.gotFocus)
示例#8
0
 def setCaption(self, val):
     self.lblMonthYear.Caption = val
     self.layout()
     callAfterInterval(100, self.Parent.Sizer.layout)
示例#9
0
 def _setYear(self, val):
     self._year = val
     callAfterInterval(50, self.afterDateChanged)
示例#10
0
 def _setMonth(self, val):
     self._month = val
     callAfterInterval(50, self.afterDateChanged)
示例#11
0
 def onLostFocus(self, evt):
     callAfterInterval(10, self.Parent.lostFocus)
示例#12
0
 def onGotFocus(self, evt):
     callAfterInterval(10, self.Parent.gotFocus)