Browse Source

Clean console.py

Remove a nonessential line and fix a typo.
bip39-recovery
Benoit Verret 5 years ago
parent
commit
c5577b0271
  1. 3
      electrum/gui/qt/console.py

3
electrum/gui/qt/console.py

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

Loading…
Cancel
Save