diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-03-15 14:39:03 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-03-15 14:39:03 (GMT) |
commit | 6b498de1659247b04f7b5f097bbaf7b11bd5d8a2 (patch) | |
tree | bc190f6dcadae0fe02418b44708740f5d373faa1 /Mac/Lib | |
parent | abd703d0ce4d793aa9432826dbea1d8dcc68f63d (diff) | |
download | cpython-6b498de1659247b04f7b5f097bbaf7b11bd5d8a2.zip cpython-6b498de1659247b04f7b5f097bbaf7b11bd5d8a2.tar.gz cpython-6b498de1659247b04f7b5f097bbaf7b11bd5d8a2.tar.bz2 |
Handle the apple menu differently under Carbon.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/FrameWork.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index 8a2ef17..4735fc4 100644 --- a/Mac/Lib/FrameWork.py +++ b/Mac/Lib/FrameWork.py @@ -676,10 +676,14 @@ class AppleMenu(Menu): def __init__(self, bar, abouttext="About me...", aboutcallback=None): Menu.__init__(self, bar, "\024") - self.additem(abouttext, None, aboutcallback) - self.addseparator() if MacOS.runtimemodel == 'ppc': + self.additem(abouttext, None, aboutcallback) + self.addseparator() self.menu.AppendResMenu('DRVR') + else: + # Additem()'s tricks do not work for "apple" menu under Carbon + self.menu.InsertMenuItem(abouttext, 0) + self.items.append((abouttext, None, aboutcallback, None)) def dispatch(self, id, item, window, event): if item == 1: |