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,