From: Javier Sancho Date: Thu, 26 Jul 2018 10:13:49 +0000 (+0200) Subject: Improve exported Kv X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=0aa8dfced2da3c8255a6c6da9c3d9cc9c9e5566b;p=kivyforms.git Improve exported Kv --- diff --git a/kivyforms/formcanvas.py b/kivyforms/formcanvas.py index 0f4c183..3c6ab60 100644 --- a/kivyforms/formcanvas.py +++ b/kivyforms/formcanvas.py @@ -128,6 +128,8 @@ class FormCanvas(BoxLayout): height=self.widgets_height, size_hint=self.widgets_size_hint ) + widget.height = self.widgets_height + widget.size_hint = self.widgets_size_hint g.add_widget(widget) self._canvas.add_widget(g) @@ -229,7 +231,7 @@ class FormCanvas(BoxLayout): stack.append(widget) # Widget attributes - for attr in ('height', 'size_hint', 'text'): + for attr in ('height', 'size_hint', 'text', 'spacing'): if hasattr(widget, attr): value = getattr(widget, attr) if type(value) is str: