[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Patch-gnuradio] form.py: checkbox eventhandling: GetInt -> IsChecked
From: |
Patrick Strasser |
Subject: |
[Patch-gnuradio] form.py: checkbox eventhandling: GetInt -> IsChecked |
Date: |
Tue, 13 Jun 2006 13:51:32 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050602 Thunderbird/1.0.2 Mnenhy/0.7.2.0 |
Hello!
In
gr-wxgui/src/python/form.py
class checkbox_field used GetInt for callbacks.
This is not applicable for Checkboxes, IsChecked is the right call for
Checkboxes (returns a bool)
Patrick
--
Engineers motto: cheap, good, fast: choose any two
Patrick Strasser <patrick dot strasser at tugraz dot at>
Student of Telematik, Techn. University Graz, Austria
Index: form.py
===================================================================
RCS file: /sources/gnuradio/gr-wxgui/src/python/form.py,v
retrieving revision 1.8
diff -u -r1.8 form.py
--- form.py 2 Nov 2005 08:07:58 -0000 1.8
+++ form.py 13 Jun 2006 11:40:59 -0000
@@ -252,7 +257,7 @@
w = wx.CheckBox(parent, new_id, label, style=wx.CHK_2STATE)
self.f = self._pair_with_label(w, parent=parent, sizer=sizer,
label=None, weight=weight)
if callback:
- wx.EVT_CHECKBOX(w, new_id, lambda evt: callback(evt.GetInt()))
+ wx.EVT_CHECKBOX(w, new_id, lambda evt: callback(evt.IsChecked()))
field.__init__(self, converter, value)
def _get_prim_value(self):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Patch-gnuradio] form.py: checkbox eventhandling: GetInt -> IsChecked,
Patrick Strasser <=