Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

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["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._icons["time"]["delay"] = QtGui.QIcon(os.path.join(resourcesPath, "icons", "time_delay.png"))
            self.tb.setResultIcon(item)
            item.setText(1, "Status: Finished")
            self.tb.setStateIcon(item, ExecutionState.FINISHED)
    def _updateScriptStarted(self, script):
        #    The current script has started, alter the tree to reflect this.
    def _updateCommandFinished(self, script, uId):
        (child, parent) = self._findCommandResult(script, uId)
        if child!=None:
            #    Set the parent's icon too:
            self.tb.setStateIcon(parent, ExecutionState.FINISHED)

src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/GlobalExecutioner.py   PyRQ(Download)
    def _onDone(self, workId):
        self.state = ExecutionState.FINISHED
        self._parent._parent.emit(Qt.SIGNAL("executeFinished(int, PyQt_PyObject)"), workId, self)
    def _build(self):
        p = self._params
        if (workId!=None) and (self._workId!=workId):
            return
        if self.state==ExecutionState.FINISHED:
            self.reset()
        self.state = ExecutionState.RUNNING
    def _doActionCommandResult(self, workId, uId, postDelay, **kwargs):
        for config in self.configs:
            if config["uId"]==uId:
                config["_executing_"] = ExecutionState.FINISHED
        self._parent._parent.emit(Qt.SIGNAL("executeStepResult(int, PyQt_PyObject, PyQt_PyObject)"), uId, kwargs, self)
    def isFinished(self):
        return (self.state==ExecutionState.FINISHED)
    def step(self, workId):
        if workId!=self._workId:
            return

src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/ScriptTreeBuilder.py   PyRQ(Download)
        else:
            if isFinished==True:
                self.setStateIcon(item, ExecutionState.FINISHED)
            else:
                self.setStateIcon(item, state)