mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
Merge pull request #6467 from verretor/console-startup-message
Remove empty startup message from console
This commit is contained in:
commit
9b416b577e
1 changed files with 1 additions and 9 deletions
|
@ -44,7 +44,7 @@ class OverlayLabel(QtWidgets.QLabel):
|
|||
|
||||
|
||||
class Console(QtWidgets.QPlainTextEdit):
|
||||
def __init__(self, prompt='>> ', startup_message='', parent=None):
|
||||
def __init__(self, prompt='>>> ', parent=None):
|
||||
QtWidgets.QPlainTextEdit.__init__(self, parent)
|
||||
|
||||
self.prompt = prompt
|
||||
|
@ -56,7 +56,6 @@ class Console(QtWidgets.QPlainTextEdit):
|
|||
self.setWordWrapMode(QtGui.QTextOption.WrapAnywhere)
|
||||
self.setUndoRedoEnabled(False)
|
||||
self.document().setDefaultFont(QtGui.QFont(MONOSPACE_FONT, 10, QtGui.QFont.Normal))
|
||||
self.showMessage(startup_message)
|
||||
|
||||
self.updateNamespace({'run':self.run_script})
|
||||
self.set_json(False)
|
||||
|
@ -347,10 +346,3 @@ class Console(QtWidgets.QPlainTextEdit):
|
|||
self.setCommand(beginning + p)
|
||||
else:
|
||||
self.show_completions(completions)
|
||||
|
||||
|
||||
welcome_message = '''
|
||||
---------------------------------------------------------------
|
||||
Welcome to a primitive Python interpreter.
|
||||
---------------------------------------------------------------
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue