Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2d564fdc
Kaydet (Commit)
2d564fdc
authored
Kas 02, 2001
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
removed import display hackery
üst
f7f93880
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
66 deletions
+5
-66
PythonIDEMain.py
Mac/Tools/IDE/PythonIDEMain.py
+1
-2
Splash.py
Mac/Tools/IDE/Splash.py
+4
-64
No files found.
Mac/Tools/IDE/PythonIDEMain.py
Dosyayı görüntüle @
2d564fdc
# copyright 1997-200
0
Just van Rossum, Letterror. just@letterror.com
# copyright 1997-200
1
Just van Rossum, Letterror. just@letterror.com
import
Splash
import
Splash
...
@@ -29,7 +29,6 @@ class PythonIDE(Wapplication.Application):
...
@@ -29,7 +29,6 @@ class PythonIDE(Wapplication.Application):
self
.
quitevent
)
self
.
quitevent
)
import
PyConsole
,
PyEdit
import
PyConsole
,
PyEdit
Splash
.
wait
()
Splash
.
wait
()
Splash
.
uninstall_importhook
()
PyConsole
.
installoutput
()
PyConsole
.
installoutput
()
PyConsole
.
installconsole
()
PyConsole
.
installconsole
()
import
sys
import
sys
...
...
Mac/Tools/IDE/Splash.py
Dosyayı görüntüle @
2d564fdc
...
@@ -5,77 +5,17 @@ splash = Dlg.GetNewDialog(468, -1)
...
@@ -5,77 +5,17 @@ splash = Dlg.GetNewDialog(468, -1)
splash
.
DrawDialog
()
splash
.
DrawDialog
()
from
Carbon
import
Qd
,
TE
,
Fm
from
Carbon
import
Qd
,
TE
,
Fm
import
sys
_real__import__
=
None
def
install_importhook
():
global
_real__import__
import
__builtin__
if
_real__import__
is
None
:
_real__import__
=
__builtin__
.
__import__
__builtin__
.
__import__
=
my__import__
def
uninstall_importhook
():
global
_real__import__
if
_real__import__
is
not
None
:
import
__builtin__
__builtin__
.
__import__
=
_real__import__
_real__import__
=
None
_progress
=
0
_about_width
=
440
_about_height
=
340
def
importing
(
module
):
global
_progress
Qd
.
SetPort
(
splash
)
fontID
=
Fm
.
GetFNum
(
"Python-Sans"
)
if
not
fontID
:
from
Carbon.Fonts
import
geneva
fontID
=
geneva
Qd
.
TextFont
(
fontID
)
Qd
.
TextSize
(
9
)
labelrect
=
(
35
,
_about_height
-
35
,
_about_width
-
35
,
_about_height
-
19
)
framerect
=
(
35
,
_about_height
-
19
,
_about_width
-
35
,
_about_height
-
11
)
l
,
t
,
r
,
b
=
progrect
=
Qd
.
InsetRect
(
framerect
,
1
,
1
)
if
module
:
TE
.
TETextBox
(
'Importing: '
+
module
,
labelrect
,
0
)
if
not
_progress
:
Qd
.
FrameRect
(
framerect
)
pos
=
min
(
r
,
l
+
((
r
-
l
)
*
_progress
)
/
44
)
Qd
.
PaintRect
((
l
,
t
,
pos
,
b
))
_progress
=
_progress
+
1
else
:
Qd
.
EraseRect
(
labelrect
)
Qd
.
PaintRect
((
l
,
t
,
pos
,
b
))
Qd
.
QDFlushPortBuffer
(
splash
.
GetDialogWindow
()
.
GetWindowPort
(),
None
)
def
my__import__
(
name
,
globals
=
None
,
locals
=
None
,
fromlist
=
None
):
try
:
return
sys
.
modules
[
name
]
except
KeyError
:
try
:
importing
(
name
)
except
:
try
:
rv
=
_real__import__
(
name
)
finally
:
uninstall_importhook
()
return
rv
return
_real__import__
(
name
)
#install_importhook()
kHighLevelEvent
=
23
from
Carbon
import
Win
from
Carbon
import
Win
from
Carbon.Fonts
import
*
from
Carbon.Fonts
import
*
from
Carbon.QuickDraw
import
*
from
Carbon.QuickDraw
import
*
from
Carbon.TextEdit
import
*
from
Carbon.TextEdit
import
teJustCenter
import
string
import
string
import
sys
import
sys
_about_width
=
440
_about_height
=
340
_keepsplashscreenopen
=
0
_keepsplashscreenopen
=
0
abouttext1
=
"""The Python Integrated Development Environment for the Macintosh
\xaa
abouttext1
=
"""The Python Integrated Development Environment for the Macintosh
\xaa
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment