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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

            @staticmethod
    def loadUi(parent, settings):
        ge = GlobalExecutioner(parent)
        #    Delays:
        try:
            value = settings.value("delays", type=bytearray)
            value = str(value)
            delays = pickle.loads(value)
        except Exception, _e:
            delays = {"pre":None, "post":None}
        ge._delays = delays
        #    Configs:
        try:
            value = settings.value("script", type=bytearray)
            value = str(value)
            configs = pickle.loads(value)
        except Exception, _e:
            configs = []
        ge.configs = configs
        ge._enabled = settings.value("enabled", True).toBool()
        name = settings.value("name").toString()
        if name!=None and len(name)!=1:
            ge.name = name
        ge.author = settings.value("author", "root").toString()
        (value, isValid) = settings.value("index", -1).toInt()
        if isValid:
            ge._currentIndex = value
        #    state:
        (value, isValid) = settings.value("state", ExecutionState.NOT_RUN).toInt()
        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/Scripter.py   PyRQ(Download)
                settings.beginGroup(group)
                try:
                    script = GlobalExecutioner.loadUi(self, settings)
                    if script!=None:
                        self._scripts.append(script)