'Constructor.
Args:
_namespace: The local namespace of the interpreter.'

def __init__(self, _namespace, parent):

    super().__init__(parent=parent)
    self.update_font()
    objreg.get('config').changed.connect(self.update_font)
    self._history = cmdhistory.History(parent=self)
    self.returnPressed.connect(self.on_return_pressed)
