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

Jack Jansen jackjansen@users.sourceforge.net
Mon, 31 Dec 2001 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):