[Python-checkins] CVS: python/dist/src/Mac/Demo/waste wed.py,1.7,1.8

Jack Jansen jackjansen@users.sourceforge.net
Mon, 31 Dec 2001 07:02:32 -0800


Update of /cvsroot/python/python/dist/src/Mac/Demo/waste
In directory usw-pr-cvs1:/tmp/cvs-serv32104/Python/Mac/Demo/waste

Modified Files:
	wed.py 
Log Message:
Updated to optionally use Carbon Scrap manager.

Index: wed.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Demo/waste/wed.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** wed.py	2001/08/25 12:14:04	1.7
--- wed.py	2001/12/31 15:02:30	1.8
***************
*** 191,196 ****
  	def menu_cut(self):
  		self.ted.WESelView()
! 		self.ted.WECut()
! 		Scrap.ZeroScrap()
  		self.ted.WECut()
  		self.updatescrollbars()
--- 191,198 ----
  	def menu_cut(self):
  		self.ted.WESelView()
! 		if hasattr(Scrap, 'ZeroScrap'):
! 			Scrap.ZeroScrap()
! 		else:
! 			Scrap.ClearCurrentScrap()
  		self.ted.WECut()
  		self.updatescrollbars()
***************
*** 199,203 ****
  		
  	def menu_copy(self):
! 		Scrap.ZeroScrap()
  		self.ted.WECopy()
  		self.updatescrollbars()
--- 201,208 ----
  		
  	def menu_copy(self):
! 		if hasattr(Scrap, 'ZeroScrap'):
! 			Scrap.ZeroScrap()
! 		else:
! 			Scrap.ClearCurrentScrap()
  		self.ted.WECopy()
  		self.updatescrollbars()