Add auto format in ranges

This commit is contained in:
Mauricio Baeza 2020-12-02 23:14:27 -06:00
parent 59e471c5f7
commit 88ee0dab31
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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