summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/waste
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-12-31 15:02:56 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-12-31 15:02:56 (GMT)
commit9cf00dd5510cb433d4bc3fd941127c6675f5558d (patch)
tree75b8927edd8b999a768e087f6dbaf52df22ba039 /Mac/Demo/waste
parentad8381a8f008ed104c84cd59a14f4161083d60da (diff)
downloadcpython-9cf00dd5510cb433d4bc3fd941127c6675f5558d.zip
cpython-9cf00dd5510cb433d4bc3fd941127c6675f5558d.tar.gz
cpython-9cf00dd5510cb433d4bc3fd941127c6675f5558d.tar.bz2
Updated to optionally use Carbon Scrap manager.
Diffstat (limited to 'Mac/Demo/waste')
-rw-r--r--Mac/Demo/waste/htmled.py11
-rw-r--r--Mac/Demo/waste/swed.py11
-rw-r--r--Mac/Demo/waste/wed.py11
3 files changed, 24 insertions, 9 deletions
diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py
index fc2ce5b..b590b1d 100644
--- a/Mac/Demo/waste/htmled.py
+++ b/Mac/Demo/waste/htmled.py
@@ -297,14 +297,19 @@ class WasteWindow(ScrolledWindow):
def menu_cut(self):
self.ted.WESelView()
- self.ted.WECut()
- Scrap.ZeroScrap()
+ if hasattr(Scrap, 'ZeroScrap'):
+ Scrap.ZeroScrap()
+ else:
+ Scrap.ClearCurrentScrap()
self.ted.WECut()
self.updatescrollbars()
self.parent.updatemenubar()
def menu_copy(self):
- Scrap.ZeroScrap()
+ if hasattr(Scrap, 'ZeroScrap'):
+ Scrap.ZeroScrap()
+ else:
+ Scrap.ClearCurrentScrap()
self.ted.WECopy()
self.updatescrollbars()
self.parent.updatemenubar()
diff --git a/Mac/Demo/waste/swed.py b/Mac/Demo/waste/swed.py
index e2c2666..62b027e 100644
--- a/Mac/Demo/waste/swed.py
+++ b/Mac/Demo/waste/swed.py
@@ -235,14 +235,19 @@ class WasteWindow(ScrolledWindow):
def menu_cut(self):
self.ted.WESelView()
- self.ted.WECut()
- Scrap.ZeroScrap()
+ if hasattr(Scrap, 'ZeroScrap'):
+ Scrap.ZeroScrap()
+ else:
+ Scrap.ClearCurrentScrap()
self.ted.WECut()
self.updatescrollbars()
self.parent.updatemenubar()
def menu_copy(self):
- Scrap.ZeroScrap()
+ if hasattr(Scrap, 'ZeroScrap'):
+ Scrap.ZeroScrap()
+ else:
+ Scrap.ClearCurrentScrap()
self.ted.WECopy()
self.updatescrollbars()
self.parent.updatemenubar()
diff --git a/Mac/Demo/waste/wed.py b/Mac/Demo/waste/wed.py
index 00ff8d8..14bee45 100644
--- a/Mac/Demo/waste/wed.py
+++ b/Mac/Demo/waste/wed.py
@@ -190,15 +190,20 @@ class WasteWindow(ScrolledWindow):
def menu_cut(self):
self.ted.WESelView()
- self.ted.WECut()
- Scrap.ZeroScrap()
+ if hasattr(Scrap, 'ZeroScrap'):
+ Scrap.ZeroScrap()
+ else:
+ Scrap.ClearCurrentScrap()
self.ted.WECut()
self.updatescrollbars()
self.parent.updatemenubar()
self.changed = 1
def menu_copy(self):
- Scrap.ZeroScrap()
+ if hasattr(Scrap, 'ZeroScrap'):
+ Scrap.ZeroScrap()
+ else:
+ Scrap.ClearCurrentScrap()
self.ted.WECopy()
self.updatescrollbars()
self.parent.updatemenubar()