'Execute the line of code which was entered.'

@pyqtSlot()
def on_return_pressed(self):

    self._history.stop()
    text = self.text()
    if text:
        self._history.append(text)
    self.execute.emit(text)
    self.setText('')
