示例#1
0
文件: worker.py 项目: mthxx/Comms
 def update_all_channels(self):
     if(Communicator.ACTIVE_LOG_PATH and
         Communicator.ACTIVE_LOG_PATH != "logs/welcomeMessage.txt"):
         self.delta = SSH.get_all_logs(Communicator.TCP_HOST, Communicator.TCP_PORT)
         if self.delta and self.delta != None:
             Communicator.DELTA.append(self.delta)
             self.channel_notification.emit()
             for i in range(0,len(self.delta)):
                 if self.delta[i] == Communicator.ACTIVE_CHANNEL:
                     self.refresh_signal.emit()
     return