[Python-checkins] CVS: python/dist/src/Mac/Demo/waste swed.py,1.11,1.12

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


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

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

Index: swed.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Demo/waste/swed.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** swed.py	2001/08/25 12:12:59	1.11
--- swed.py	2001/12/31 15:02:38	1.12
***************
*** 236,241 ****
  	def menu_cut(self):
  		self.ted.WESelView()
! 		self.ted.WECut()
! 		Scrap.ZeroScrap()
  		self.ted.WECut()
  		self.updatescrollbars()
--- 236,243 ----
  	def menu_cut(self):
  		self.ted.WESelView()
! 		if hasattr(Scrap, 'ZeroScrap'):
! 			Scrap.ZeroScrap()
! 		else:
! 			Scrap.ClearCurrentScrap()
  		self.ted.WECut()
  		self.updatescrollbars()
***************
*** 243,247 ****
  		
  	def menu_copy(self):
! 		Scrap.ZeroScrap()
  		self.ted.WECopy()
  		self.updatescrollbars()
--- 245,252 ----
  		
  	def menu_copy(self):
! 		if hasattr(Scrap, 'ZeroScrap'):
! 			Scrap.ZeroScrap()
! 		else:
! 			Scrap.ClearCurrentScrap()
  		self.ted.WECopy()
  		self.updatescrollbars()