changeset 79db10570325 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=79db10570325
description:
Update board parse to work with new Container API
The Container API has changed in issue8139.
issue8307
review267321003
diffstat:
tryton/gui/window/view_board/view_board.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r fc20ef244eca -r 79db10570325 tryton/gui/window/view_board/view_board.py
--- a/tryton/gui/window/view_board/view_board.py Thu May 02 12:49:12
2019 +0200
+++ b/tryton/gui/window/view_board/view_board.py Thu May 02 12:54:19
2019 +0200
@@ -25,7 +25,7 @@
break
self.attributes = node_attributes(node)
- self.widget = self.parse(node).table
+ self.widget = self.parse(node).container
self.widget.show_all()
self._active_changed(None)
@@ -110,17 +110,17 @@
scrolledwindow.show_all()
notebook.append_page(scrolledwindow, tab_box)
container = self.parse(node)
- viewport.add(container.table)
+ viewport.add(container.container)
def _parse_group(self, node, container, attributes):
group = self.parse(node)
- group.table.set_homogeneous(attributes.get('homogeneous', False))
+ group.container.set_homogeneous(attributes.get('homogeneous', False))
frame = Gtk.Frame()
frame.set_label(attributes.get('string'))
if not attributes.get('string'):
frame.set_shadow_type(Gtk.ShadowType.NONE)
frame.set_border_width(0)
- frame.add(group.table)
+ frame.add(group.container)
container.add(frame, attributes)
def _parse_paned(self, node, container, attributes, Paned):
@@ -144,7 +144,7 @@
pack = paned.pack1
else:
pack = paned.pack2
- pack(container.table, resize=True, shrink=True)
+ pack(container.container, resize=True, shrink=True)
def _parse_action(self, node, container, attributes):
attributes.setdefault('yexpand', True)