summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>2000-10-20 07:35:33 (GMT)
committerJust van Rossum <just@lettererror.com>2000-10-20 07:35:33 (GMT)
commitc9246615084ec8e798c5cf382a463485b3d53a56 (patch)
treef754697e42de5187ef28d185a01b2b908d948ecf /Mac
parenta1a335641bef39f29deffefb2c9f35b30cc793ac (diff)
downloadcpython-c9246615084ec8e798c5cf382a463485b3d53a56.zip
cpython-c9246615084ec8e798c5cf382a463485b3d53a56.tar.gz
cpython-c9246615084ec8e798c5cf382a463485b3d53a56.tar.bz2
edits to make the 2.0 copyright fit in the about box again... (jvr)
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/Splash.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/Mac/Tools/IDE/Splash.py b/Mac/Tools/IDE/Splash.py
index 868c6d2..6318810 100644
--- a/Mac/Tools/IDE/Splash.py
+++ b/Mac/Tools/IDE/Splash.py
@@ -70,14 +70,12 @@ import sys
_keepsplashscreenopen = 0
-abouttext1 = """The Python Integrated Developement Environment for the Macintosh
+abouttext1 = """The Python Integrated Development Environment for the Macintosh
Version: %s
Copyright 1997-2000 Just van Rossum, Letterror. <just@letterror.com>
Python %s
%s
-Written by Guido van Rossum with Jack Jansen (and others)
-
See: <http://www.python.org/> for information and documentation."""
flauwekul = [ 'Goodday, Bruce.',
@@ -93,8 +91,11 @@ at any place . . . he is ready to become . . .
Bicycle Repair Man!"""
]
+def skipdoublereturns(text):
+ return string.replace(text, '\n\n', '\n')
+
def nl2return(text):
- return string.join(string.split(text, '\n'), '\r')
+ return string.replace(text, '\n', '\r')
def UpdateSplash(drawdialog = 0, what = 0):
if drawdialog:
@@ -109,11 +110,11 @@ def drawtext(what = 0):
fontID = geneva
Qd.TextFont(fontID)
Qd.TextSize(9)
- rect = (10, 125, 390, 260)
+ rect = (10, 115, 390, 290)
if not what:
import __main__
- abouttxt = nl2return(abouttext1 \
- % (__main__.__version__, sys.version, sys.copyright))
+ abouttxt = nl2return(abouttext1 % (
+ __main__.__version__, sys.version, skipdoublereturns(sys.copyright)))
else:
import random
abouttxt = nl2return(random.choice(flauwekul))
@@ -133,7 +134,7 @@ def wait():
time = Evt.TickCount()
whattext = 0
while _keepsplashscreenopen:
- ok, event = Evt.EventAvail(highLevelEventMask)
+) ok, event = Evt.EventAvail(highLevelEventMask)
if ok:
# got apple event, back to mainloop
break