From c3d3d672781b5b6c93259dc1bd5a6820d9651475 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Fri, 27 Nov 2020 19:22:04 -0600 Subject: [PATCH] Remove forms --- source/diff.py | 7 ------- source/easymacro2.py | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/diff.py b/source/diff.py index 587b026..cc9ba7a 100644 --- a/source/diff.py +++ b/source/diff.py @@ -128,13 +128,6 @@ class LOForms(ObjectBase): def exists(self, name): return name in self.names - def remove(self, index): - if isinstance(index, int): - self.obj.removeByIndex(index) - else: - self.obj.removeByName(index) - return - class LOCalcSheet(object): diff --git a/source/easymacro2.py b/source/easymacro2.py index 8ee25ce..3354870 100644 --- a/source/easymacro2.py +++ b/source/easymacro2.py @@ -1573,6 +1573,13 @@ class LOSheetForms(object): self.obj.insertByName(name, form) return LOForm(form) + def remove(self, index): + if isinstance(index, int): + self.obj.removeByIndex(index) + else: + self.obj.removeByName(index) + return + # ~ IsFiltered, # ~ IsManualPageBreak,