def handle_timed_loop(self): notifications = monitor_servers(self.data) for x in notifications: self.icon.showMessage('ALERT', x, self.msgIcon) #pass self.timer = threading.Timer(10, self.handle_timed_loop) self.timer.start()
def handle_timed_loop(self): self.notifications = monitor_servers(self.data) self.timer = threading.Timer(10, self.handle_timed_loop) self.timer.start() NOTIFIER.notify.emit()