]> granicus.if.org Git - python/commitdiff
Show the MacPython IDE version in the interactive banner.
authorJust van Rossum <just@letterror.com>
Mon, 6 Aug 2001 11:12:18 +0000 (11:12 +0000)
committerJust van Rossum <just@letterror.com>
Mon, 6 Aug 2001 11:12:18 +0000 (11:12 +0000)
Mac/Tools/IDE/PyConsole.py

index 4c3278544e0379257f0be096d609062f93652006..389834a8b0c5c0caa497f6ae750ca836865815a1 100644 (file)
@@ -47,8 +47,11 @@ class ConsoleTextWidget(W.EditText):
                self._namespace = dict
        
        def open(self):
+               import __main__
                W.EditText.open(self)
-               self.write('Python ' + sys.version + '\nType "copyright", "credits" or "license" for more information.\n')
+               self.write('Python %s\n' % sys.version)
+               self.write('Type "copyright", "credits" or "license" for more information.\n')
+               self.write('MacPython IDE %s\n' % __main__.__version__)
                self.write(sys.ps1)
                self.flush()