some minor tweaks to make it possible to not show the default intro text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -343,11 +343,12 @@ class Shell(editwindow.EditWindow):
|
||||
def showIntro(self, text=''):
|
||||
"""Display introductory text in the shell."""
|
||||
if text:
|
||||
if not text.endswith(os.linesep):
|
||||
text += os.linesep
|
||||
self.write(text)
|
||||
try:
|
||||
self.write(self.interp.introText)
|
||||
if self.interp.introText:
|
||||
if text and not text.endswith(os.linesep):
|
||||
self.write(os.linesep)
|
||||
self.write(self.interp.introText)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user