[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE PyBrowser.py,1.13,1.14
Jack Jansen
jackjansen@users.sourceforge.net
Mon, 31 Dec 2001 07:08:07 -0800
Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv592/Python/Mac/Tools/IDE
Modified Files:
PyBrowser.py
Log Message:
Use the Carbon scrap manager interface if the old interface isn't available.
Index: PyBrowser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PyBrowser.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** PyBrowser.py 2001/12/31 08:57:57 1.13
--- PyBrowser.py 2001/12/31 15:08:04 1.14
***************
*** 292,297 ****
if text:
from Carbon import Scrap
! Scrap.ZeroScrap()
! Scrap.PutScrap('TEXT', text)
--- 292,302 ----
if text:
from Carbon import Scrap
! if hasattr(Scrap, 'PutScrap'):
! Scrap.ZeroScrap()
! Scrap.PutScrap('TEXT', text)
! else:
! Scrap.ClearCurrentScrap()
! sc = Scrap.GetCurrentScrap()
! sc.PutScrapFlavor('TEXT', 0, text)