summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wwindows.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE/Wwindows.py')
-rw-r--r--Mac/Tools/IDE/Wwindows.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wwindows.py b/Mac/Tools/IDE/Wwindows.py
index 1494187..20ed312 100644
--- a/Mac/Tools/IDE/Wwindows.py
+++ b/Mac/Tools/IDE/Wwindows.py
@@ -564,8 +564,13 @@ def FrontWindowInsert(stuff):
"Can't find window or widget to insert text into; copy to clipboard instead?",
1) == 1:
from Carbon import Scrap
- Scrap.ZeroScrap()
- Scrap.PutScrap('TEXT', stuff)
+ if hasattr(Scrap, 'PutScrap'):
+ Scrap.ZeroScrap()
+ Scrap.PutScrap('TEXT', stuff)
+ else:
+ Scrap.ClearCurrentScrap()
+ sc = Scrap.GetCurrentScrap()
+ sc.PutScrapFlavor('TEXT', 0, stuff)
# not quite based on the same function in FrameWork