summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wapplication.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-04-03 21:52:10 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-04-03 21:52:10 (GMT)
commite9c0358bf45bd6e0fe0b17720b41d20d618e6d9d (patch)
treed1e37a6aeaadd28d51c2a2d18033ffce6cd3b651 /Mac/Tools/IDE/Wapplication.py
parent71cc46e7e11b375d3023eb91988a9ebec868e511 (diff)
downloadcpython-e9c0358bf45bd6e0fe0b17720b41d20d618e6d9d.zip
cpython-e9c0358bf45bd6e0fe0b17720b41d20d618e6d9d.tar.gz
cpython-e9c0358bf45bd6e0fe0b17720b41d20d618e6d9d.tar.bz2
e macresource.need() to open the W resource file in the application init
code (if it isn't open already). PythonIDE still opens the resource file "manually" because it also uses presence of the CURS resource to determine whether it needs to adjust sys.path.
Diffstat (limited to 'Mac/Tools/IDE/Wapplication.py')
-rw-r--r--Mac/Tools/IDE/Wapplication.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py
index ec0071f..27613f2 100644
--- a/Mac/Tools/IDE/Wapplication.py
+++ b/Mac/Tools/IDE/Wapplication.py
@@ -7,6 +7,7 @@ from Carbon import Events
import traceback
from types import *
from Carbon import Menu; MenuToolbox = Menu; del Menu
+import macresource
if hasattr(Win, "FrontNonFloatingWindow"):
MyFrontWindow = Win.FrontNonFloatingWindow
@@ -19,6 +20,8 @@ KILLUNKNOWNWINDOWS = 0 # Set to 0 for debugging.
class Application(FrameWork.Application):
def __init__(self, signature='Pyth'):
+ # Open our resource file, if it is not open yet
+ macresource.need('CURS', 468, "Widgets.rsrc")
import W
W.setapplication(self, signature)
FrameWork.Application.__init__(self)