[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE Wtext.py,1.16,1.17
Jack Jansen
jackjansen@users.sourceforge.net
Mon, 31 Dec 2001 06:52:54 -0800
Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv30662/Python/Mac/Tools/IDE
Modified Files:
Wtext.py
Log Message:
Use the Carbon scrap manager interface if the old interface isn't available.
Index: Wtext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/Wtext.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Wtext.py 2001/12/04 13:30:29 1.16
--- Wtext.py 2001/12/31 14:52:52 1.17
***************
*** 431,435 ****
if selbegin == selend:
return
! Scrap.ZeroScrap()
self.ted.WECopy()
self.updatescrollbars()
--- 431,438 ----
if selbegin == selend:
return
! if hasattr(Scrap, 'ZeroScrap'):
! Scrap.ZeroScrap()
! else:
! Scrap.ClearCurrentScrap()
self.ted.WECopy()
self.updatescrollbars()
***************
*** 439,443 ****
if selbegin == selend:
return
! Scrap.ZeroScrap()
self.ted.WECut()
self.updatescrollbars()
--- 442,449 ----
if selbegin == selend:
return
! if hasattr(Scrap, 'ZeroScrap'):
! Scrap.ZeroScrap()
! else:
! Scrap.ClearCurrentScrap()
self.ted.WECut()
self.updatescrollbars()