From 88ee0dab313ce8df103068f003196239a429978a Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Wed, 2 Dec 2020 23:14:27 -0600 Subject: [PATCH] Add auto format in ranges --- source/diff.py | 7 ------- source/easymacro2.py | 9 ++++++++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/diff.py b/source/diff.py index 480fb54..4be281d 100644 --- a/source/diff.py +++ b/source/diff.py @@ -272,13 +272,6 @@ class LOBase(object): class LOCellRange(object): - @property - def auto_format(self): - return self.obj.CellStyle - @auto_format.setter - def auto_format(self, value): - self.obj.autoFormat(value) - @property def validation(self): return self.obj.Validation diff --git a/source/easymacro2.py b/source/easymacro2.py index 5e6dd9e..e429efb 100644 --- a/source/easymacro2.py +++ b/source/easymacro2.py @@ -106,7 +106,7 @@ try: __exception_wrapper__ except ImportError as e: Database = DateField = TimeField = DateTimeField = object - print('You need install peewee, only if you will use Base') + print('You need install peewee, only if you will develop with Base') LOG_FORMAT = '%(asctime)s - %(levelname)s - %(message)s' @@ -2393,6 +2393,13 @@ class LOCalcRange(object): def style(self, value): self.obj.CellStyle = value + @property + def auto_format(self): + return '' + @auto_format.setter + def auto_format(self, value): + self.obj.autoFormat(value) + def select(self): self.doc.select(self.obj) return