Import the MacOS toolbox modules from the Carbon package.

This commit is contained in:
Jack Jansen 2001-08-25 12:15:04 +00:00
parent 6dba6bc0a2
commit 5a6fdcd371
100 changed files with 336 additions and 331 deletions

View file

@ -14,7 +14,8 @@ class PythonIDE(Wapplication.Application):
def __init__(self):
self.preffilepath = ":Python:PythonIDE preferences"
Wapplication.Application.__init__(self, 'Pide')
import AE, AppleEvents
from Carbon import AE
from Carbon import AppleEvents
AE.AEInstallEventHandler(AppleEvents.kCoreEventClass, AppleEvents.kAEOpenApplication,
self.ignoreevent)
@ -123,7 +124,7 @@ def makeusermenus(self):
self.makescriptsmenu()
def quitevent(self, theAppleEvent, theReply):
import AE
from Carbon import AE
AE.AEInteractWithUser(50000000)
self._quit()