From: Jack Jansen Date: Thu, 15 Mar 2001 14:39:03 +0000 (+0000) Subject: Handle the apple menu differently under Carbon. X-Git-Tag: v2.1b2~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b498de1659247b04f7b5f097bbaf7b11bd5d8a2;p=python Handle the apple menu differently under Carbon. --- diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index 8a2ef17e96..4735fc42e6 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: