diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-29 15:32:00 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-29 15:32:00 (GMT) |
commit | 01a2d9e281a3b9ce7762c1ee192ae1f38d037fe7 (patch) | |
tree | a82d21b09c0d3a22ddb789e78b8d0229ade3766a /Mac/Lib/FrameWork.py | |
parent | bf21bef2543e5045f3569cd9227d6b7921dda59c (diff) | |
download | cpython-01a2d9e281a3b9ce7762c1ee192ae1f38d037fe7.zip cpython-01a2d9e281a3b9ce7762c1ee192ae1f38d037fe7.tar.gz cpython-01a2d9e281a3b9ce7762c1ee192ae1f38d037fe7.tar.bz2 |
Use FSpCreateResFile() in stead of CreateResFile().
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
Diffstat (limited to 'Mac/Lib/FrameWork.py')
-rw-r--r-- | Mac/Lib/FrameWork.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index 75381fc..dc762cf 100644 --- a/Mac/Lib/FrameWork.py +++ b/Mac/Lib/FrameWork.py @@ -674,12 +674,13 @@ class AppleMenu(Menu): Menu.__init__(self, bar, "\024") self.additem(abouttext, None, aboutcallback) self.addseparator() - self.menu.AppendResMenu('DRVR') + if MacOS.runtimemodel == 'ppc': + self.menu.AppendResMenu('DRVR') def dispatch(self, id, item, window, event): if item == 1: Menu.dispatch(self, id, item, window, event) - else: + elif MacOS.runtimemodel == 'ppc': name = self.menu.GetMenuItemText(item) OpenDeskAcc(name) |