Ensure integer expand is converted into boolean

issue8308
review253381002
This commit is contained in:
Cédric Krier committed 2019-07-13 00:16:28 +02:00
1 parent d1ead06bd8
commit 35bcbd9d00
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ class XMLViewParser:
node_attrs[name] = bool(int(node_attrs[name]))
for name in [
'yexpand', 'yfill', 'xexpand', 'xfill', 'colspan', 'position',
'height', 'width']:
'height', 'width', 'expand']:
if name in node_attrs:
node_attrs[name] = int(node_attrs[name])
for name in ['xalign', 'yalign']:
+1 -1
View File
@@ -420,7 +420,7 @@ class TreeXMLViewParser(XMLViewParser):
column.set_fixed_width(width)
column.set_min_width(1)
expand = attributes.get('expand', False)
expand = bool(attributes.get('expand', False))
column.set_expand(expand)
column.set_resizable(True)
if attributes.get('widget') != 'text':