summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-02-27 22:28:58 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-02-27 22:28:58 (GMT)
commit3ef6652f803604cace1a3265a70321b6afdfe6e1 (patch)
tree336a434320883f2df0d1d026d92dbffaa1d08098 /Mac
parentd4d4413252e74b4086a156bb14ad6df7f545cd37 (diff)
downloadcpython-3ef6652f803604cace1a3265a70321b6afdfe6e1.zip
cpython-3ef6652f803604cace1a3265a70321b6afdfe6e1.tar.gz
cpython-3ef6652f803604cace1a3265a70321b6afdfe6e1.tar.bz2
Backport of 1.17:
Use the Carbon scrap manager interface if the old interface isn't available.
Diffstat (limited to 'Mac')
-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()