示例#1
0
    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()
示例#2
0
 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()