mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Import the MacOS toolbox modules from the Carbon package.
This commit is contained in:
parent
6dba6bc0a2
commit
5a6fdcd371
100 changed files with 336 additions and 331 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue