summaryrefslogtreecommitdiff
path: root/gr-wxgui/src/python
diff options
context:
space:
mode:
authorJohnathan Corgan2009-10-21 14:20:15 -0700
committerJohnathan Corgan2009-10-21 14:20:15 -0700
commit8e003a402af2993f978620741fdf195ac9bf7834 (patch)
tree17bc885b8e32b3b29f78d9ae0817c88c581d87f2 /gr-wxgui/src/python
parent3f60c94858810b605c2f8a343375c57c78a660dc (diff)
parent2875cf23fcb5d38866a42327cafa2b43abe2fbf4 (diff)
downloadgnuradio-8e003a402af2993f978620741fdf195ac9bf7834.tar.gz
gnuradio-8e003a402af2993f978620741fdf195ac9bf7834.tar.bz2
gnuradio-8e003a402af2993f978620741fdf195ac9bf7834.zip
Merge branch 'vrt' of http://gnuradio.org/git/jblum
Merge fix: added GRUEL_INCLUDES to vrt Makefile Merge fix: added missing include in gr-vrt * 'vrt' of http://gnuradio.org/git/jblum: query the model number from the host fix so all handlers get called on event simplfied the code while i was looking at it added access methods for gps stuff added access methods and parsing for caldiv if context use existing utility method reading the lo back and storing it use the new htonll and vrt types to send cal and lo freqs checking for if context packets and setting up the payload pointer and size Reading 64 bit freq out of chunk of context packet. copied over vrt context and type headers, updated bits.h as well Dump IF-Context packets in hex. use gruel/inet.h instead of arap/inet.h fix white space made rxdspno a parameter for: start/stop streaming, and quadradio32fc
Diffstat (limited to 'gr-wxgui/src/python')
-rw-r--r--gr-wxgui/src/python/forms/forms.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-wxgui/src/python/forms/forms.py b/gr-wxgui/src/python/forms/forms.py
index 8dc58367d..19b30ffb0 100644
--- a/gr-wxgui/src/python/forms/forms.py
+++ b/gr-wxgui/src/python/forms/forms.py
@@ -194,15 +194,19 @@ class static_text(_form_base):
@param label title label for this widget (optional)
@param width the width of the form in px
@param bold true to bold-ify the text (default=False)
+ @param units a suffix to add after the text
@param converter forms.str_converter(), int_converter(), float_converter()...
"""
- def __init__(self, label='', width=-1, bold=False, converter=converters.str_converter(), **kwargs):
+ def __init__(self, label='', width=-1, bold=False, units='', converter=converters.str_converter(), **kwargs):
+ self._units = units
_form_base.__init__(self, converter=converter, **kwargs)
self._static_text = wx.StaticText(self._parent, size=wx.Size(width, -1))
if bold: make_bold(self._static_text)
self._add_widget(self._static_text, label)
- def _update(self, label): self._static_text.SetLabel(label); self._parent.Layout()
+ def _update(self, label):
+ if self._units: label += ' ' + self._units
+ self._static_text.SetLabel(label); self._parent.Layout()
########################################################################
# Text Box Form