[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE PythonIDEMain.py,1.12,1.13

Jack Jansen jackjansen@users.sourceforge.net
Sat, 25 Aug 2001 05:10:45 -0700


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv21353/Python/Mac/Tools/IDE

Modified Files:
	PythonIDEMain.py 
Log Message:
Import the MacOS toolbox modules from the Carbon package.

Index: PythonIDEMain.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PythonIDEMain.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** PythonIDEMain.py	2001/06/19 21:37:33	1.12
--- PythonIDEMain.py	2001/08/25 12:10:43	1.13
***************
*** 15,19 ****
  		self.preffilepath = ":Python:PythonIDE preferences"
  		Wapplication.Application.__init__(self, 'Pide')
! 		import AE, AppleEvents
  		
  		AE.AEInstallEventHandler(AppleEvents.kCoreEventClass, AppleEvents.kAEOpenApplication, 
--- 15,20 ----
  		self.preffilepath = ":Python:PythonIDE preferences"
  		Wapplication.Application.__init__(self, 'Pide')
! 		from Carbon import AE
! 		from Carbon import AppleEvents
  		
  		AE.AEInstallEventHandler(AppleEvents.kCoreEventClass, AppleEvents.kAEOpenApplication, 
***************
*** 124,128 ****
  	
  	def quitevent(self, theAppleEvent, theReply):
! 		import AE
  		AE.AEInteractWithUser(50000000)
  		self._quit()
--- 125,129 ----
  	
  	def quitevent(self, theAppleEvent, theReply):
! 		from Carbon import AE
  		AE.AEInteractWithUser(50000000)
  		self._quit()