summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-04-03 21:28:02 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-04-03 21:28:02 (GMT)
commit8f3078b3f0d7379932b8055eb7f7f4076c90f11b (patch)
tree4a128d51bc5ba0f2aab27fa5dcf368ec20aa2001 /Mac/Tools
parentb81fbad9c0e75cb26e81ae4b9c0cd0ff96512ecf (diff)
downloadcpython-8f3078b3f0d7379932b8055eb7f7f4076c90f11b.zip
cpython-8f3078b3f0d7379932b8055eb7f7f4076c90f11b.tar.gz
cpython-8f3078b3f0d7379932b8055eb7f7f4076c90f11b.tar.bz2
Got the example program to work in MachoPython.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/Wminiapp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wminiapp.py b/Mac/Tools/IDE/Wminiapp.py
index d48a876..3ebd226 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