コード例 #1
0
ファイル: ApiImport.py プロジェクト: KurSh/netzob
    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)
コード例 #2
0
ファイル: ApiImport.py プロジェクト: windli4367/netzob
    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)
コード例 #3
0
ファイル: test_ApiImport.py プロジェクト: EnjoyHacking/netzob
 def test_getCurrentProcesses(self):
     current = ExecutionContext.getCurrentProcesses()
     self.assertGreater(len(current), 5)
コード例 #4
0
 def test_getCurrentProcesses(self):
     current = ExecutionContext.getCurrentProcesses()
     self.assertGreater(len(current), 5)
コード例 #5
0
 def updateProcessesList(self):
     self.log.debug("Updating the list of executing processes.")
     self.processes = ExecutionContext.getCurrentProcesses()