From 38ed5a2a1d47bfd1855a814a8f112ad6ad268ceb Mon Sep 17 00:00:00 2001 From: James Bowman Date: Sat, 2 Mar 2019 11:50:35 -0800 Subject: [PATCH] Make monitor mode a ToggleButton --- python/samples/i2cgui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/samples/i2cgui.py b/python/samples/i2cgui.py index 1eb0cb2..c60d9e4 100644 --- a/python/samples/i2cgui.py +++ b/python/samples/i2cgui.py @@ -111,8 +111,8 @@ class Frame(wx.Frame): devgrid.Add(l) self.monitor = False - self.ckM = wx.CheckBox(self, label = "Monitor mode") - self.ckM.Bind(wx.EVT_CHECKBOX, self.check_m) + self.ckM = wx.ToggleButton(self, label = "Monitor mode") + self.ckM.Bind(wx.EVT_TOGGLEBUTTON, self.check_m) ps = self.GetFont().GetPointSize()