diff options
author | Josh Blum <josh@joshknows.com> | 2009-09-05 23:49:34 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2009-09-05 23:49:34 -0700 |
commit | a6cb9eceeb62593e852b6dea0f640436381ec947 (patch) | |
tree | ae658e53a2302b1916920fea7ee2d8acc0b40dde /grc/gui | |
parent | 49b8dd0586241f59df4b74679349718cbe946fde (diff) |
more code cleanup for properties dialog
Diffstat (limited to 'grc/gui')
-rw-r--r-- | grc/gui/Param.py | 15 | ||||
-rw-r--r-- | grc/gui/PropsDialog.py | 2 |
2 files changed, 1 insertions, 16 deletions
diff --git a/grc/gui/Param.py b/grc/gui/Param.py index 3c5e99e9eb..9cd31b8a4d 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 bd66b11784..9be0400fe8 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() |