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()
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()
def getGUIObject(self): return DVGui.getField(self.name)
def setStatus(self,status): DVGui.setStatus(status) global activeSession if status == "N/A": return activeSession = self
def setStatus(self, status): DVGui.setStatus(status) global activeSession if status == "N/A": return activeSession = self