more code cleanup for properties dialog
authorJosh Blum <josh@joshknows.com>
Sun, 6 Sep 2009 06:49:34 +0000 (23:49 -0700)
committerJosh Blum <josh@joshknows.com>
Sun, 6 Sep 2009 06:49:34 +0000 (23:49 -0700)
grc/gui/Param.py
grc/gui/PropsDialog.py
grc/todo.txt

index 3c5e99e9ebe10e68f94defd2e322a56c4a1334d8..9cd31b8a4dc90f74d49adeaaaf853473ace0af34 100644 (file)
@@ -156,21 +156,6 @@ class Param(Element):
                if self.get_options(): return EnumEntryParam
                return EntryParam
 
-       def update(self):
-               """
-               Called when an external change occurs.
-               Update the graphical input by calling the change handler.
-               """
-               if hasattr(self, '_input'): self._handle_changed()
-
-       def get_input_object(self, callback=None):
-               """
-               Get the graphical gtk object to represent this parameter.
-               @param callback a function to be called from the input object. 
-               @return gtk input object
-               """
-               return self.get_input_class()(self, callback=callback)
-
        def get_layout(self):
                """
                Create a layout based on the current markup.
index bd66b1178471c45abd597da61cc3d220467866b3..9be0400fe802f32dfd46d822d215d8f84c1db3c3 100644 (file)
@@ -125,7 +125,7 @@ class PropsDialog(gtk.Dialog):
                        #repopulate the params box
                        for param in self.block.get_params():
                                if param.get_hide() == 'all': continue
-                               io_param = param.get_input_object(self._update)
+                               io_param = param.get_input_class()(param, callback=self._update)
                                self._input_object_params.append(io_param)
                                self._params_box.pack_start(io_param, False)
                        self._params_box.show_all()
index 99351a912f198bc09ffbb8dc84c05934ded727de..2735ff2af24b578708d349d01f9e50743bb08407 100644 (file)
@@ -70,6 +70,7 @@
 * align param titles in properties dialog
 * weird grid params misbehaving
 * properties dialog needs to show connection errors
+* fix param input stuff for usrp probes
 
 ##################################################
 # Future