diff options
-rw-r--r-- | Mac/Tools/IDE/PyBrowser.py | 9 |
1 files 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: |