Пример #1
0
 def runAllFiles(self,files,randomize=False):
     """Run all the scripts in given list."""
     GD.gui.actions['Stop'].setEnabled(True)
     if randomize:
         random.shuffle(files)
     for f in files:
         draw.layout(1)
         self.runScript(f)
         #GD.debug("draw.exitrequested == %s" % draw.exitrequested)
         if draw.exitrequested:
             break
     GD.gui.actions['Stop'].setEnabled(False)
Пример #2
0
 def runAllFiles(self,files,randomize=False,pause=0.):
     """Run all the scripts in given list."""
     pf.GUI.actions['Stop'].setEnabled(True)
     if randomize:
         random.shuffle(files)
     for f in files:
         draw.layout(1)
         self.runScript(f)
         #pf.debug("draw.exitrequested == %s" % draw.exitrequested)
         if draw.exitrequested:
             break
         if pause > 0.:
             sleep(pause)
     pf.GUI.actions['Stop'].setEnabled(False)
Пример #3
0
 def runAllFiles(self,files,randomize=False,pause=0.):
     """Run all the scripts in given list."""
     pf.GUI.actions['Stop'].setEnabled(True)
     if randomize:
         random.shuffle(files)
     for f in files:
         while script.scriptlock:
             print "WAITING BECAUSE OF SCRIPTLOCK"
             draw.sleep(5)
         draw.layout(1)
         self.runScript(f)
         if draw.exitrequested:
             break
         ## if pause > 0.:
         ##     sleep(pause)
     pf.GUI.actions['Stop'].setEnabled(False)
Пример #4
0
def singleViewport():
    draw.layout(1)
Пример #5
0
def singleViewport():
    draw.layout(1)