home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 1.5)
-
- import Dlg
- import Res
- splash = Dlg.GetNewDialog(468, -1)
- splash.DrawDialog()
- import Qd
- import TE
- import 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
-
- def importing(module):
- global _progress
- Qd.SetPort(splash)
- fontID = Fm.GetFNum('Python-Sans')
- if not fontID:
- fontID = geneva
-
- Qd.TextFont(fontID)
- Qd.TextSize(9)
- rect = (35, 260, 365, 276)
- if module:
- TE.TETextBox('Importing: ' + module, rect, 0)
- if not _progress:
- Qd.FrameRect((35, 276, 365, 284))
-
- pos = min(36 + 330 * _progress / 44, 364)
- Qd.PaintRect((36, 277, pos, 283))
- _progress = _progress + 1
- else:
- Qd.EraseRect(rect)
- Qd.PaintRect((36, 277, pos, 283))
-
-
- 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
- import Win
- *
- *
- *
- UpdateSplash(1)
-