Clean console.py

Remove a nonessential line and fix a typo.
This commit is contained in:
Benoit Verret 2020-07-14 09:24:34 -04:00
parent 995250948a
commit c5577b0271

View file

@ -178,7 +178,7 @@ class Console(QtWidgets.QPlainTextEdit):
def getHistory(self):
return self.history
def setHisory(self, history):
def setHistory(self, history):
self.history = history
def addToHistory(self, command):
@ -357,6 +357,5 @@ welcome_message = '''
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
console = Console(startup_message=welcome_message)
console.updateNamespace({'myVar1' : app, 'myVar2' : 1234})
console.show()
sys.exit(app.exec_())