mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 02:35:20 +00:00
Clean console.py
Remove a nonessential line and fix a typo.
This commit is contained in:
parent
995250948a
commit
c5577b0271
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue