diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-06-09 14:44:22 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-06-10 14:41:52 +0200 |
commit | 435e2b16c903b4a9d16d40ffba649698c4ded190 (patch) | |
tree | a99691a8877b7fc911c9d4b223d26b0f3fa5921b /grc/gui/ParamWidgets.py | |
parent | 6375ebf0eb2b619e1a31ec8b8babc3ad0f968dd2 (diff) |
grc-refactor: rewrite tree-api in core
Diffstat (limited to 'grc/gui/ParamWidgets.py')
-rw-r--r-- | grc/gui/ParamWidgets.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/grc/gui/ParamWidgets.py b/grc/gui/ParamWidgets.py index e0979e19f3..fbbfa93d1d 100644 --- a/grc/gui/ParamWidgets.py +++ b/grc/gui/ParamWidgets.py @@ -173,8 +173,7 @@ class PythonEditorParam(InputParam): self.pack_start(button, True) def open_editor(self, widget=None): - flowgraph = self.param.get_parent().get_parent() - flowgraph.install_external_editor(self.param) + self.param.parent_flowgraph.install_external_editor(self.param) def get_text(self): pass # we never update the value from here @@ -274,9 +273,8 @@ class FileParam(EntryParam): if self.param.get_key() == 'qt_qss_theme': dirname = os.path.dirname(dirname) # trim filename if not os.path.exists(dirname): - platform = self.param.get_parent().get_parent().get_parent() - dirname = os.path.join(platform.config.install_prefix, - '/share/gnuradio/themes') + config = self.param.parent_platform.config + dirname = os.path.join(config.install_prefix, '/share/gnuradio/themes') if not os.path.exists(dirname): dirname = os.getcwd() # fix bad paths |