From 65293680aa6a4f62024eb25ba8ff4c731c126a60 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 31 Dec 2001 15:08:04 +0000 Subject: Use the Carbon scrap manager interface if the old interface isn't available. --- Mac/Tools/IDE/PyBrowser.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Mac/Tools/IDE/PyBrowser.py b/Mac/Tools/IDE/PyBrowser.py index 74849df..b2468f3 100644 --- a/Mac/Tools/IDE/PyBrowser.py +++ b/Mac/Tools/IDE/PyBrowser.py @@ -291,8 +291,13 @@ class BrowserWidget(W.List): text = string.join(selitems, '\r') if text: from Carbon import Scrap - Scrap.ZeroScrap() - Scrap.PutScrap('TEXT', text) + if hasattr(Scrap, 'PutScrap'): + Scrap.ZeroScrap() + Scrap.PutScrap('TEXT', text) + else: + Scrap.ClearCurrentScrap() + sc = Scrap.GetCurrentScrap() + sc.PutScrapFlavor('TEXT', 0, text) class Browser: -- cgit v0.12