Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(0) | Call(0) | Derive(0) | Import(0)
src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/Scripter.py PyRQ(Download)
"node":None, "command":{"generic":None, "create":None, "close":None, "put":None, "get":None, "qsize":None, "maxQSize":None}, "state":{ExecutionState.FINISHED:None, ExecutionState.NOT_RUN:None, ExecutionState.RUNNING:None, ExecutionState.PAUSED:None}} def show(self): super(Scripter, self).show()
self._icons["enabled"][False] = QtGui.QIcon(os.path.join(resourcesPath, "icons", "tree_cross.png")) self._icons["state"][ExecutionState.RUNNING] = QtGui.QIcon(os.path.join(resourcesPath, "icons", "state_running.png")) self._icons["state"][ExecutionState.PAUSED] = QtGui.QIcon(os.path.join(resourcesPath, "icons", "state_paused.png")) self._icons["state"][ExecutionState.FINISHED] = QtGui.QIcon(os.path.join(resourcesPath, "icons", "state_finished.png")) self._icons["state"][ExecutionState.NOT_RUN] = QtGui.QIcon(os.path.join(resourcesPath, "icons", "state_notrun.png"))
self.tb.setResultIcon(item) item.setText(1, "Status: Paused") self.tb.setStateIcon(item, ExecutionState.PAUSED) def _updateScriptAuthor(self, script): # The current script 'author' has changed, alter the tree to reflect this.
src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/GlobalExecutioner.py PyRQ(Download)
def pause(self): self.state = ExecutionState.PAUSED self._paused = True def reset(self, workId=None): if (workId!=None) and (self._workId!=workId):
if isValid: if value==ExecutionState.RUNNING: value = ExecutionState.PAUSED ge._state = value return ge
src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/ScriptTreeNodes.py PyRQ(Download)
a.append(actions["script_enable"]) else: if (script.state==ExecutionState.PAUSED) or (script.state==ExecutionState.NOT_RUN): a.append(actions["script_disable"]) if (scripter._executing==None) or (scripter._executing==scripter._scripts.index(script)):