Beispiel #1
0
def listen():
    global status
    if status == "RUNNING":
        return
    if status == "N/A":
        return
    if status == "STOPPING":
        raise SessionStoppedError("session was stopped by user")
    if status == "PAUSING":
        DVGui.setStatus("PAUSED")
    while status == "PAUSED":
        from flags import app
        app.processEvents()
    if status == "WAITTING DEBUG":
        DVGui.setStatus("DEBUG")
        import pdb
        pdb.set_trace()
        DVGui.setStatus("RUNNING")

    return listen()
Beispiel #2
0
def listen():
    global status
    if status == "RUNNING":
        return
    if status =="N/A":
        return
    if status == "STOPPING":
        raise SessionStoppedError("session was stopped by user")
    if status == "PAUSING":
        DVGui.setStatus("PAUSED")
    while status == "PAUSED" :
        from flags import app
        app.processEvents()
    if status == "WAITTING DEBUG":
        DVGui.setStatus("DEBUG")
        import pdb
        pdb.set_trace()
        DVGui.setStatus("RUNNING")
    
    
    return listen()
Beispiel #3
0
 def getGUIObject(self):
     return DVGui.getField(self.name)
Beispiel #4
0
 def setStatus(self,status):
     DVGui.setStatus(status)
     global activeSession
     if status == "N/A":
         return
     activeSession = self
Beispiel #5
0
 def getGUIObject(self):
     return DVGui.getField(self.name)
Beispiel #6
0
 def setStatus(self, status):
     DVGui.setStatus(status)
     global activeSession
     if status == "N/A":
         return
     activeSession = self