Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c924661

Browse files
author
Just van Rossum
committed
edits to make the 2.0 copyright fit in the about box again... (jvr)
1 parent a1a3356 commit c924661

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Mac/Tools/IDE/Splash.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,12 @@ def my__import__(name, globals=None, locals=None, fromlist=None):
7070

7171
_keepsplashscreenopen = 0
7272

73-
abouttext1 = """The Python Integrated Developement Environment for the Macintosh
73+
abouttext1 = """The Python Integrated Development Environment for the Macintosh
7474
Version: %s
7575
Copyright 1997-2000 Just van Rossum, Letterror. <[email protected]>
7676
7777
Python %s
7878
%s
79-
Written by Guido van Rossum with Jack Jansen (and others)
80-
8179
See: <http://www.python.org/> for information and documentation."""
8280

8381
flauwekul = [ 'Goodday, Bruce.',
@@ -93,8 +91,11 @@ def my__import__(name, globals=None, locals=None, fromlist=None):
9391
Bicycle Repair Man!"""
9492
]
9593

94+
def skipdoublereturns(text):
95+
return string.replace(text, '\n\n', '\n')
96+
9697
def nl2return(text):
97-
return string.join(string.split(text, '\n'), '\r')
98+
return string.replace(text, '\n', '\r')
9899

99100
def UpdateSplash(drawdialog = 0, what = 0):
100101
if drawdialog:
@@ -109,11 +110,11 @@ def drawtext(what = 0):
109110
fontID = geneva
110111
Qd.TextFont(fontID)
111112
Qd.TextSize(9)
112-
rect = (10, 125, 390, 260)
113+
rect = (10, 115, 390, 290)
113114
if not what:
114115
import __main__
115-
abouttxt = nl2return(abouttext1 \
116-
% (__main__.__version__, sys.version, sys.copyright))
116+
abouttxt = nl2return(abouttext1 % (
117+
__main__.__version__, sys.version, skipdoublereturns(sys.copyright)))
117118
else:
118119
import random
119120
abouttxt = nl2return(random.choice(flauwekul))
@@ -133,7 +134,7 @@ def wait():
133134
time = Evt.TickCount()
134135
whattext = 0
135136
while _keepsplashscreenopen:
136-
ok, event = Evt.EventAvail(highLevelEventMask)
137+
) ok, event = Evt.EventAvail(highLevelEventMask)
137138
if ok:
138139
# got apple event, back to mainloop
139140
break

0 commit comments

Comments
 (0)