예제 #1
0
 def check_day_change(self):
     self._actual_date = datetime.now()
     if self._actual_date < self._start_day_range.start or self._actual_date > self._start_day_range.end:
         return False
     else:
         self._start_day_range = today_range(self._actual_date)
         return True
예제 #2
0
 def check_day_change(self):
     self._actual_date = datetime.now()
     if self._actual_date < self._start_day_range.start or self._actual_date > self._start_day_range.end:
         return False
     else:
         self._start_day_range = today_range(self._actual_date)
         return True
예제 #3
0
 def __init__(self, parent=None):
     super(ThreadWorker, self).__init__(parent)
     self.mutex = QMutex()
     self._stop = False
     self._running = False
     self._interval = 5
     self._timedelta_interval = 30  #timedelta for creating period in which alert will occur
     self._start_day_range = today_range()
     self._actual_date = None
     self._tasks = None
     self._executed_tasks = []
예제 #4
0
 def __init__(self, parent=None):
     super(ThreadWorker, self).__init__(parent)
     self.mutex = QMutex()
     self._stop = False
     self._running = False
     self._interval = 5
     self._timedelta_interval = 30  #timedelta for creating period in which alert will occur
     self._start_day_range = today_range()
     self._actual_date = None
     self._tasks = None
     self._executed_tasks = []