[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE Wapplication.py,1.16,1.17 Wwindows.py,1.16,1.17

Jack Jansen jackjansen@users.sourceforge.net
Thu, 21 Mar 2002 14:36:59 -0800


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

Modified Files:
	Wapplication.py Wwindows.py 
Log Message:
For reasons I don't fully understand we sometimes get unexpected events
in MachoPython. As we don't have MacOS.HandleEvent() we drop these on
the floor (with a print).


Index: Wapplication.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/Wapplication.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Wapplication.py	4 Feb 2002 12:50:24 -0000	1.16
--- Wapplication.py	21 Mar 2002 22:36:57 -0000	1.17
***************
*** 203,207 ****
  				sys.stderr.write("XXX killed unknown (crashed?) Python window.\n")
  			else:
! 				MacOS.HandleEvent(event)
  	
  	def suspendresume(self, onoff):
--- 203,210 ----
  				sys.stderr.write("XXX killed unknown (crashed?) Python window.\n")
  			else:
! 				if hasattr(MacOS, 'HandleEvent'):
! 					MacOS.HandleEvent(event)
! 				else:
! 					print 'Unexpected updateEvent:', event
  	
  	def suspendresume(self, onoff):

Index: Wwindows.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/Wwindows.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Wwindows.py	4 Feb 2002 12:50:24 -0000	1.16
--- Wwindows.py	21 Mar 2002 22:36:57 -0000	1.17
***************
*** 520,524 ****
  		
  		if name == "do_inDesk":
! 			MacOS.HandleEvent(event)
  			return
  		if wid == self.wid:
--- 520,527 ----
  		
  		if name == "do_inDesk":
! 			if hasattr(MacOS, "HandleEvent"):
! 				MacOS.HandleEvent(event)
! 			else:
! 				print 'Unexpected inDesk event:', event
  			return
  		if wid == self.wid: