diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-25 12:15:04 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-25 12:15:04 (GMT) |
commit | 5a6fdcd3718927109592c6df692fe24a8fdaee31 (patch) | |
tree | 3816c4cbfcf1533dee55a48a8eec2c3557ae44cc /Mac/Tools/IDE/Splash.py | |
parent | 6dba6bc0a226c2dd384d9311b9ad842be653c2b5 (diff) | |
download | cpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.zip cpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.tar.gz cpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.tar.bz2 |
Import the MacOS toolbox modules from the Carbon package.
Diffstat (limited to 'Mac/Tools/IDE/Splash.py')
-rw-r--r-- | Mac/Tools/IDE/Splash.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Mac/Tools/IDE/Splash.py b/Mac/Tools/IDE/Splash.py index 5293295..31271cc 100644 --- a/Mac/Tools/IDE/Splash.py +++ b/Mac/Tools/IDE/Splash.py @@ -1,10 +1,11 @@ -import Dlg -import Res +from Carbon import Dlg +from Carbon import Res splash = Dlg.GetNewDialog(468, -1) splash.DrawDialog() -import Qd, TE, Fm, sys +from Carbon import Qd, TE, Fm +import sys _real__import__ = None @@ -32,7 +33,7 @@ def importing(module): Qd.SetPort(splash) fontID = Fm.GetFNum("Python-Sans") if not fontID: - from Fonts import geneva + from Carbon.Fonts import geneva fontID = geneva Qd.TextFont(fontID) Qd.TextSize(9) @@ -68,10 +69,10 @@ def my__import__(name, globals=None, locals=None, fromlist=None): #install_importhook() kHighLevelEvent = 23 -import Win -from Fonts import * -from QuickDraw import * -from TextEdit import * +from Carbon import Win +from Carbon.Fonts import * +from Carbon.QuickDraw import * +from Carbon.TextEdit import * import string import sys @@ -130,8 +131,8 @@ def drawtext(what = 0): UpdateSplash(1) def wait(): - import Evt - import Events + from Carbon import Evt + from Carbon import Events global splash try: splash |