From: Jack Jansen Date: Wed, 3 Apr 2002 21:28:02 +0000 (+0000) Subject: Got the example program to work in MachoPython. X-Git-Tag: v2.3c1~6158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f3078b3f0d7379932b8055eb7f7f4076c90f11b;p=python Got the example program to work in MachoPython. --- diff --git a/Mac/Tools/IDE/Wminiapp.py b/Mac/Tools/IDE/Wminiapp.py index d48a876efa..3ebd226d48 100644 --- a/Mac/Tools/IDE/Wminiapp.py +++ b/Mac/Tools/IDE/Wminiapp.py @@ -1,14 +1,16 @@ """Minimal W application.""" import Wapplication +import macresource +import os class TestApp(Wapplication.Application): def __init__(self): from Carbon import Res - Res.FSpOpenResFile("Widgets.rsrc", 1) + macresource.open_pathname("Widgets.rsrc") self._menustocheck = [] - self.preffilepath = ":Python:PythonIDE preferences" + self.preffilepath = os.path.join("Python", "PythonIDE preferences") Wapplication.Application.__init__(self, 'Pyth') # open a new text editor import PyEdit