Пример #1
0
 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()
Пример #3
0
"""MiniAEFrame - A minimal AppleEvent Application framework.
Пример #4
0
"""'echo' -- an AppleEvent handler which handles all events the same.
Пример #5
0
"""AEservertest - Test AppleEvent server interface