Add auto format in ranges
This commit is contained in:
parent
59e471c5f7
commit
88ee0dab31
|
@ -272,13 +272,6 @@ class LOBase(object):
|
||||||
|
|
||||||
class LOCellRange(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
|
@property
|
||||||
def validation(self):
|
def validation(self):
|
||||||
return self.obj.Validation
|
return self.obj.Validation
|
||||||
|
|
|
@ -106,7 +106,7 @@ try:
|
||||||
__exception_wrapper__
|
__exception_wrapper__
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
Database = DateField = TimeField = DateTimeField = object
|
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'
|
LOG_FORMAT = '%(asctime)s - %(levelname)s - %(message)s'
|
||||||
|
@ -2393,6 +2393,13 @@ class LOCalcRange(object):
|
||||||
def style(self, value):
|
def style(self, value):
|
||||||
self.obj.CellStyle = 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):
|
def select(self):
|
||||||
self.doc.select(self.obj)
|
self.doc.select(self.obj)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue