]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/py/interpreter.py
wx.FRAME_FLOAT_ON_PARENT notes
[wxWidgets.git] / wxPython / wx / py / interpreter.py
index 4eef617272e4478464d8b9153569c1153d9ec371..c2415b7458ea41d0e3017cf165d7d4cac4c003fa 100644 (file)
@@ -17,7 +17,8 @@ class Interpreter(InteractiveInterpreter):
     revision = __revision__
     
     def __init__(self, locals=None, rawin=None, 
-                 stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr):
+                 stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr,
+                 showInterpIntro=True):
         """Create an interactive interpreter object."""
         InteractiveInterpreter.__init__(self, locals=locals)
         self.stdin = stdin
@@ -27,10 +28,11 @@ class Interpreter(InteractiveInterpreter):
             import __builtin__
             __builtin__.raw_input = rawin
             del __builtin__
-        copyright = 'Type "help", "copyright", "credits" or "license"'
-        copyright += ' for more information.'
-        self.introText = 'Python %s on %s%s%s' % \
-                         (sys.version, sys.platform, os.linesep, copyright)
+        if showInterpIntro:
+            copyright = 'Type "help", "copyright", "credits" or "license"'
+            copyright += ' for more information.'
+            self.introText = 'Python %s on %s%s%s' % \
+                             (sys.version, sys.platform, os.linesep, copyright)
         try:
             sys.ps1
         except AttributeError: