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