[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE Wlists.py,1.10,1.11

Jack Jansen jackjansen@users.sourceforge.net
2001年12月31日 06:53:07 -0800


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv30739/Python/Mac/Tools/IDE
Modified Files:
	Wlists.py 
Log Message:
Use the Carbon scrap manager interface if the old interface isn't available.
Index: Wlists.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/Wlists.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Wlists.py	2001年12月08日 09:51:41	1.10
--- Wlists.py	2001年12月31日 14:53:05	1.11
***************
*** 177,182 ****
 		text = string.join(selitems, '\r')
 		if text:
! 			Scrap.ZeroScrap()
! 			Scrap.PutScrap('TEXT', text)
 	
 	def can_copy(self, *args):
--- 177,187 ----
 		text = string.join(selitems, '\r')
 		if text:
! 			if hasattr(Scrap, 'PutScrap'):
! 				Scrap.ZeroScrap()
! 				Scrap.PutScrap('TEXT', text)
! 			else:
! 				Scrap.ClearCurrentScrap()
! 				sc = Scrap.GetCurrentScrap()
! 				sc.PutScrapFlavor('TEXT', 0, text)
 	
 	def can_copy(self, *args):

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