Exemplo n.º 1
0
 def do_refresh(self):
     try:
         if self.isVisible():
             service_status = agent_status()
             self.properties.service_status_label.setText(HUMAN_SERVICE_STATUS[service_status])
     finally:
         QTimer.singleShot(REFRESH_PERIOD, self.do_refresh)
Exemplo n.º 2
0
 def do_refresh(self):
     try:
         if self.isVisible():
             service_status = get_service_status()
             self.properties.service_status_label.setText(HUMAN_SERVICE_STATUS[service_status])
     finally:
         QTimer.singleShot(REFRESH_PERIOD, self.do_refresh)
Exemplo n.º 3
0
    def do_refresh(self):
        try:
            if self.isVisible():
                service_status = get_service_status()
                self.properties.service_status_label.setText(HUMAN_SERVICE_STATUS[service_status])

                if not is_service_stopped(service_status) and self.properties.current_file == self.log_file:
                    self.properties.set_log_file(self.log_file)
        finally:
            QTimer.singleShot(REFRESH_PERIOD, self.do_refresh)
Exemplo n.º 4
0
    def do_refresh(self):
        try:
            if self.isVisible():
                service_status = get_service_status()
                self.properties.service_status_label.setText(HUMAN_SERVICE_STATUS[service_status])

                if not is_service_stopped(service_status) and self.properties.current_file == self.log_file:
                    self.properties.set_log_file(self.log_file)
        finally:
            QTimer.singleShot(REFRESH_PERIOD, self.do_refresh)