def updateProcessList_cb(self, button): self.processStore.handler_block(self.handlerID) # clear the list of process self.processStore.get_model().clear() # retrieves the list of process self.listOfProcess = ExecutionContext.getCurrentProcesses() # add in the list all the process for process in self.listOfProcess: self.processStore.append_text(str(process.getPid()) + "\t" + process.getName()) self.processStore.handler_unblock(self.handlerID)
def updateProcessList_cb(self, button): self.processStore.handler_block(self.handlerID) # clear the list of process self.processStore.get_model().clear() # retrieves the list of process self.listOfProcess = ExecutionContext.getCurrentProcesses() # add in the list all the process for process in self.listOfProcess: self.processStore.append_text( str(process.getPid()) + "\t" + process.getName()) self.processStore.handler_unblock(self.handlerID)
def test_getCurrentProcesses(self): current = ExecutionContext.getCurrentProcesses() self.assertGreater(len(current), 5)
def updateProcessesList(self): self.log.debug("Updating the list of executing processes.") self.processes = ExecutionContext.getCurrentProcesses()