]> granicus.if.org Git - python/commitdiff
Got the example program to work in MachoPython.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 3 Apr 2002 21:28:02 +0000 (21:28 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 3 Apr 2002 21:28:02 +0000 (21:28 +0000)
Mac/Tools/IDE/Wminiapp.py

index d48a876efa681549529654e75339ece3674199e1..3ebd226d48ed483691421ee11c3409217552f406 100644 (file)
@@ -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