[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 09/13: grc: add support for dynamic param n
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 09/13: grc: add support for dynamic param names |
Date: |
Fri, 24 Jul 2015 15:33:49 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit d5ce8528b5df758012a4c16eb2816af2bb853054
Author: Sebastian Koslowski <address@hidden>
Date: Tue Jun 9 14:02:17 2015 +0200
grc: add support for dynamic param names
---
grc/base/Param.py | 2 +-
grc/gui/PropsDialog.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/grc/base/Param.py b/grc/base/Param.py
index 94be8b0..c2f413c 100644
--- a/grc/base/Param.py
+++ b/grc/base/Param.py
@@ -140,7 +140,7 @@ class Param(Element):
def get_color(self): return '#FFFFFF'
def __str__(self): return 'Param - %s(%s)'%(self.get_name(),
self.get_key())
def is_param(self): return True
- def get_name(self): return self._name
+ def get_name(self): return
self.get_parent().resolve_dependencies(self._name).strip()
def get_key(self): return self._key
def get_hide(self): return
self.get_parent().resolve_dependencies(self._hide).strip()
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py
index 9594470..abf2426 100644
--- a/grc/gui/PropsDialog.py
+++ b/grc/gui/PropsDialog.py
@@ -145,7 +145,8 @@ class PropsDialog(gtk.Dialog):
old_hash = self._hash
# create a tuple of things from each param that affects the params box
self._hash = hash(tuple([(
- hash(param), param.get_type(), param.get_hide() == 'all',
+ hash(param), param.get_name(), param.get_type(),
+ param.get_hide() == 'all',
) for param in self._block.get_params()]))
return self._hash != old_hash
- [Commit-gnuradio] [gnuradio] 13/13: Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg', (continued)
- [Commit-gnuradio] [gnuradio] 13/13: Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg', git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 06/13: grc: align default flowgraph block with canvas grid, git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 11/13: grc: clean-up Block port counters, git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 02/13: grc: show preview of generated code in each blocks properties dialog, git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 07/13: grc: fix bus ports spacing in gui, git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 03/13: grc: add default value to ToggleActions, git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 04/13: grc: only show code preview tab after user enables it, git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 01/13: grc: refactor Preferences.py, git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 05/13: grc: add user settings for canvas default size and canvas font size (+ clean-ups), git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 08/13: grc: add QT GUI hier blocks (#727), git, 2015/07/24
- [Commit-gnuradio] [gnuradio] 09/13: grc: add support for dynamic param names,
git <=
- [Commit-gnuradio] [gnuradio] 10/13: grc: add struct variable block, git, 2015/07/24