summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mac/Tools/IDE/Wapplication.py3
-rw-r--r--Mac/Tools/IDE/Wminiapp.py2
2 files changed, 4 insertions, 1 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)
diff --git a/Mac/Tools/IDE/Wminiapp.py b/Mac/Tools/IDE/Wminiapp.py
index 3ebd226..e09e334 100644
--- a/Mac/Tools/IDE/Wminiapp.py
+++ b/Mac/Tools/IDE/Wminiapp.py
@@ -8,7 +8,7 @@ class TestApp(Wapplication.Application):
def __init__(self):
from Carbon import Res
- macresource.open_pathname("Widgets.rsrc")
+# macresource.open_pathname("Widgets.rsrc")
self._menustocheck = []
self.preffilepath = os.path.join("Python", "PythonIDE preferences")
Wapplication.Application.__init__(self, 'Pyth')