def gui(self, locals=None, meter=True, timer=True, exit=True): """ Show the server's user interface. :Args: locals : locals namespace {locals(), None}, optional If locals() is given, the interface will show an interpreter extension, giving a way to interact with the running script. Defaults to None. meter : boolean, optinal If True, the interface will show a vumeter of the global output signal. Defaults to True. timer : boolean, optional If True, the interface will show a clock of the current time. Defaults to True. exit : boolean, optional If True, the python interpreter will exit when the 'Quit' button is pressed, Otherwise, the GUI will be closed leaving the interpreter alive. Defaults to True. """ f, win = createServerGUI(self._nchnls, self.start, self.stop, self.recstart, self.recstop, self.setAmp, self.getIsStarted(), locals, self.shutdown, meter, timer, self._amp, exit) if meter: self._server.setAmpCallable(f) if timer: self._server.setTimeCallable(f) try: win.mainloop() except: if win != None: win.MainLoop()