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

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

src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/GlobalActionsModel.py   PyRQ(Download)
from PyRQ.RRQ.RRQType import RRQType
from PyRQ.Ui.qt4.RRQDebugger.FiltererEnablers import Enablers
from PyRQ.Ui.qt4.RRQDebugger.GlobalExecutioner import GlobalExecutioner, \
    RandomChoice, NoChoice, RandomRange, RandomSample, RandomValue, AllValues
import random
        index = self.comboBox_Timeout.currentIndex()
        if index==0:
            timeout = NoChoice()
        elif index==1:
            timeout = int(self.spinBox_Timeout.value())
            qType = RRQType.MULTIPROCESSING_QUEUE
        elif index==2:
            qType = NoChoice()
        elif index==3:
            qType = random.choice([RRQType.LOCKED_LIST, RRQType.MULTIPROCESSING_QUEUE])