Beispiel #1
0
 def check(self):
     tm = now()
     gdate = localtime(tm)[:3]
     if gdate!=self.gdate:
         self.gdate = gdate
         ui.todayCell = ui.cellCache.getTodayCell()
         for obj in self.receivers:
             obj.onCurrentDateChange(gdate)
     #timeout_add_seconds(int(dayLen-(tm+getUtcOffsetCurrent())%dayLen)+1, self.check)
     timeout_add_seconds(self.timeout, self.check)
     if ui.mainWin:
         ui.mainWin.statusIconUpdateTooltip()
Beispiel #2
0
 def check(self):
     tm = now()
     gdate = localtime(tm)[:3]
     if gdate != self.gdate:
         self.gdate = gdate
         ui.todayCell = ui.cellCache.getTodayCell()
         for obj in self.receivers:
             obj.onCurrentDateChange(gdate)
     #timeout_add_seconds(int(dayLen-(tm+getUtcOffsetCurrent())%dayLen)+1, self.check)
     timeout_add_seconds(self.timeout, self.check)
     if ui.mainWin:
         ui.mainWin.statusIconUpdateTooltip()
Beispiel #3
0
 def iniciar_timer(self):
     self.timer = timeout_add_seconds(TIMEOUT_MENU, self.lockear_menu)