diff options
Diffstat (limited to 'Mac/Demo/waste/wed.py')
-rw-r--r-- | Mac/Demo/waste/wed.py | 11 |
1 files changed, 8 insertions, 3 deletions
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() |