diff options
author | jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-09-16 16:59:13 +0000 |
---|---|---|
committer | jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-09-16 16:59:13 +0000 |
commit | 5fe222b348b9adc515877ba7aa2d840fd82e51cd (patch) | |
tree | 98dba9bd6ed2548a9f776b4947bec0f7023aa6f0 /grc/src/platforms/python/Port.py | |
parent | 440ac243e66a801aa1b0612c0a5ac2ee01243898 (diff) |
color coding for param entry boxes
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9584 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms/python/Port.py')
-rw-r--r-- | grc/src/platforms/python/Port.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/grc/src/platforms/python/Port.py b/grc/src/platforms/python/Port.py index 93fa087eb4..e75b47e4b0 100644 --- a/grc/src/platforms/python/Port.py +++ b/grc/src/platforms/python/Port.py @@ -19,6 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA from .. base.Port import Port as _Port from ... import utils +import Constants class Port(_Port): @@ -82,18 +83,18 @@ class Port(_Port): try: if self.get_vlen() == 1: return {#vlen is 1 - 'complex': '#3399FF', - 'float': '#FF8C69', - 'int': '#00FF99', - 'short': '#FFFF66', - 'byte': '#FF66FF', + 'complex': Constants.COMPLEX_COLOR_SPEC, + 'float': Constants.FLOAT_COLOR_SPEC, + 'int': Constants.INT_COLOR_SPEC, + 'short': Constants.SHORT_COLOR_SPEC, + 'byte': Constants.BYTE_COLOR_SPEC, }[self.get_type()] return {#vlen is non 1 - 'complex': '#3399AA', - 'float': '#CC8C69', - 'int': '#00CC99', - 'short': '#CCCC33', - 'byte': '#CC66CC', + 'complex': Constants.COMPLEX_VECTOR_COLOR_SPEC, + 'float': Constants.FLOAT_VECTOR_COLOR_SPEC, + 'int': Constants.INT_VECTOR_COLOR_SPEC, + 'short': Constants.SHORT_VECTOR_COLOR_SPEC, + 'byte': Constants.BYTE_VECTOR_COLOR_SPEC, }[self.get_type()] except: return _Port.get_color(self) |