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

Jack Jansen jackjansen@users.sourceforge.net
2001年12月31日 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()

AltStyle によって変換されたページ (->オリジナル) /