From 0aa8dfced2da3c8255a6c6da9c3d9cc9c9e5566b Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Thu, 26 Jul 2018 12:13:49 +0200 Subject: [PATCH] Improve exported Kv --- kivyforms/formcanvas.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.39.5