diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2015-09-08 12:19:19 -0400 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-11-11 21:39:35 +0100 |
commit | 2252b5caa205c792ac70a16e956b22cfc2d781df (patch) | |
tree | ef5d68e3511dfecc2166c0b6d6e3fda10d3366be /grc/gui/Param.py | |
parent | 2fee267dfee11bd687b4d780cb6b82924d59af3c (diff) |
grc: update PropsDialog on external param change
Diffstat (limited to 'grc/gui/Param.py')
-rw-r--r-- | grc/gui/Param.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/grc/gui/Param.py b/grc/gui/Param.py index 3588b81d8c..5f83689023 100644 --- a/grc/gui/Param.py +++ b/grc/gui/Param.py @@ -216,9 +216,9 @@ class PythonEditorParam(InputParam): def __init__(self, *args, **kwargs): InputParam.__init__(self, *args, **kwargs) - input = gtk.Button('Open in Editor') - input.connect('clicked', self.open_editor) - self.pack_start(input, True) + button = self._button = gtk.Button('Open in Editor') + button.connect('clicked', self.open_editor) + self.pack_start(button, True) def open_editor(self, widget=None): if not os.path.exists(Constants.EDITOR): @@ -229,6 +229,10 @@ class PythonEditorParam(InputParam): def get_text(self): pass # we never update the value from here + def set_color(self, color): + # self._button.modify_base(gtk.STATE_NORMAL, gtk.gdk.color_parse(color)) + self._button.modify_text(gtk.STATE_NORMAL, Colors.PARAM_ENTRY_TEXT_COLOR) + def _apply_change(self, *args): pass |