From 2c11d15f1d1bb771e15d0c12cfb05683f697f5cf Mon Sep 17 00:00:00 2001 From: Alexander Gordeyev Date: Fri, 17 Jul 2015 15:58:16 +0300 Subject: [PATCH] make checkbox label clickable --- gooey/gui/widgets/components.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gooey/gui/widgets/components.py b/gooey/gui/widgets/components.py index 7595753..94a7278 100644 --- a/gooey/gui/widgets/components.py +++ b/gooey/gui/widgets/components.py @@ -124,6 +124,8 @@ class CheckBox(BaseGuiComponent): self.help_msg = self.createHelpMsgWidget(self.panel) self.help_msg.SetMinSize((0, -1)) + self.help_msg.Bind(wx.EVT_LEFT_UP, lambda event: self.widget.SetValue(not self.widget.GetValue())) + vertical_container = wx.BoxSizer(wx.VERTICAL) vertical_container.Add(self.title)