示例#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)