예제 #1
0
    def start_program(self, name, params, button=None, params_from_edit=True):
        cParams = {}
        for p in params:
            cParams[p] = params[p].get_edit_text()

        Manager.start_program(self, name=name, params=cParams)
        self.show_menu()
예제 #2
0
    def get_status(self):
        info = Manager.get_status(self)
        status = "Status: " + info['program']['status']
        if info['program']['status'] != 'stopped':
            status += ' (' + info['program']['name'] + ") "
        if info['program']['status'] == 'error':
            status += '\n' + info['program']['error']['text'] + " (" + info['program']['error']['class'] + ") "

        status += "\nSwitch detected: " + ('YES' if info['switch'] else 'NO')

        return status
 def __init__(self, port=8003, bind_address='localhost'):
     Manager.__init__(self)
     WebSocketBase.__init__(self, port, bind_address)