diff options
author | Josh Blum | 2009-09-05 23:49:34 -0700 |
---|---|---|
committer | Josh Blum | 2009-09-05 23:49:34 -0700 |
commit | a6cb9eceeb62593e852b6dea0f640436381ec947 (patch) | |
tree | ae658e53a2302b1916920fea7ee2d8acc0b40dde /grc | |
parent | 49b8dd0586241f59df4b74679349718cbe946fde (diff) | |
download | gnuradio-a6cb9eceeb62593e852b6dea0f640436381ec947.tar.gz gnuradio-a6cb9eceeb62593e852b6dea0f640436381ec947.tar.bz2 gnuradio-a6cb9eceeb62593e852b6dea0f640436381ec947.zip |
more code cleanup for properties dialog
Diffstat (limited to 'grc')
-rw-r--r-- | grc/gui/Param.py | 15 | ||||
-rw-r--r-- | grc/gui/PropsDialog.py | 2 | ||||
-rw-r--r-- | grc/todo.txt | 1 |
3 files changed, 2 insertions, 16 deletions
diff --git a/grc/gui/Param.py b/grc/gui/Param.py index 3c5e99e9e..9cd31b8a4 100644 --- a/grc/gui/Param.py +++ b/grc/gui/Param.py @@ -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. diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py index bd66b1178..9be0400fe 100644 --- a/grc/gui/PropsDialog.py +++ b/grc/gui/PropsDialog.py @@ -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() diff --git a/grc/todo.txt b/grc/todo.txt index 99351a912..2735ff2af 100644 --- a/grc/todo.txt +++ b/grc/todo.txt @@ -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 |