예제 #1
0
파일: gui.py 프로젝트: jyogi/purvar-agent
 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)
예제 #2
0
파일: gui.py 프로젝트: hutchic/dd-agent
 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)
예제 #3
0
파일: gui.py 프로젝트: arthurnn/dd-agent
    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)
예제 #4
0
파일: gui.py 프로젝트: pbitty/dd-agent
    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)