def __init__(self): self.quitting = 0 self.appleid = 1 self.quitid = 2 Menu.ClearMenuBar() self.applemenu = applemenu = Menu.NewMenu(self.appleid, '\x14') applemenu.AppendMenu('%s;(-' % self.getaboutmenutext()) if MacOS.runtimemodel == 'ppc': applemenu.AppendResMenu('DRVR') applemenu.InsertMenu(0) self.quitmenu = Menu.NewMenu(self.quitid, 'File') self.quitmenu.AppendMenu('Quit') self.quitmenu.SetItemCmd(1, ord('Q')) self.quitmenu.InsertMenu(0) Menu.DrawMenuBar()
def __init__(self): self.quitting = 0 # Initialize menu self.appleid = 1 self.quitid = 2 Menu.ClearMenuBar() self.applemenu = applemenu = Menu.NewMenu(self.appleid, "\024") applemenu.AppendMenu("%s;(-" % self.getaboutmenutext()) if MacOS.runtimemodel == 'ppc': applemenu.AppendResMenu('DRVR') applemenu.InsertMenu(0) self.quitmenu = Menu.NewMenu(self.quitid, "File") self.quitmenu.AppendMenu("Quit") self.quitmenu.SetItemCmd(1, ord("Q")) self.quitmenu.InsertMenu(0) Menu.DrawMenuBar()
"""MiniAEFrame - A minimal AppleEvent Application framework.
"""'echo' -- an AppleEvent handler which handles all events the same.
"""AEservertest - Test AppleEvent server interface