summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wtext.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE/Wtext.py')
-rw-r--r--Mac/Tools/IDE/Wtext.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py
index e21926d..86c79c3 100644
--- a/Mac/Tools/IDE/Wtext.py
+++ b/Mac/Tools/IDE/Wtext.py
@@ -430,7 +430,10 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
selbegin, selend = self.ted.WEGetSelection()
if selbegin == selend:
return
- Scrap.ZeroScrap()
+ if hasattr(Scrap, 'ZeroScrap'):
+ Scrap.ZeroScrap()
+ else:
+ Scrap.ClearCurrentScrap()
self.ted.WECopy()
self.updatescrollbars()
@@ -438,7 +441,10 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
selbegin, selend = self.ted.WEGetSelection()
if selbegin == selend:
return
- Scrap.ZeroScrap()
+ if hasattr(Scrap, 'ZeroScrap'):
+ Scrap.ZeroScrap()
+ else:
+ Scrap.ClearCurrentScrap()
self.ted.WECut()
self.updatescrollbars()
self.selview()