From 342223c3dd7c55aedf678e2a74a2b4e1fe28d032 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 2 Jun 2020 17:48:49 -0700 Subject: [PATCH] bigfix: make checkbox honor gooey_options/label --- gooey/gui/components/widgets/checkbox.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gooey/gui/components/widgets/checkbox.py b/gooey/gui/components/widgets/checkbox.py index 6043e51..d5a5844 100644 --- a/gooey/gui/components/widgets/checkbox.py +++ b/gooey/gui/components/widgets/checkbox.py @@ -20,7 +20,12 @@ class CheckBox(TextContainer): self.help_text.SetMinSize((0,-1)) layout = wx.BoxSizer(wx.VERTICAL) - layout.Add(self.label) + if self._options.get('show_label', True): + layout.Add(self.label, 0, wx.EXPAND) + else: + self.label.Show(False) + layout.AddStretchSpacer(1) + layout.AddSpacer(2) if self.help_text: hsizer = wx.BoxSizer(wx.HORIZONTAL)