-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColumnProperties.py
More file actions
32 lines (24 loc) · 855 Bytes
/
Copy pathColumnProperties.py
File metadata and controls
32 lines (24 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from DialogFlowPy import HorizontalAlignment
class ColumnProperties(dict):
"""
{
"header": string,
"horizontalAlignment": enum(HorizontalAlignment)
}
"""
def __init__(self, header: str, horizontal_alignment: HorizontalAlignment):
super(ColumnProperties, self).__init__()
self.header = header
self.horizontal_alignment = horizontal_alignment
@property
def header(self):
return self.get('header')
@header.setter
def header(self, header: str):
self['header'] = header
@property
def horizontal_alignment(self):
return HorizontalAlignment(self.get('horizontalAlignment'))
@horizontal_alignment.setter
def horizontal_alignment(self, horizontal_alignment: HorizontalAlignment):
self['horizontalAlignment'] = horizontal_alignment.name