[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r7642 - in grc/branches/grc_reloaded/src/grc/gui: . el
From: |
jblum |
Subject: |
[Commit-gnuradio] r7642 - in grc/branches/grc_reloaded/src/grc/gui: . elements |
Date: |
Tue, 12 Feb 2008 00:10:26 -0700 (MST) |
Author: jblum
Date: 2008-02-12 00:10:24 -0700 (Tue, 12 Feb 2008)
New Revision: 7642
Modified:
grc/branches/grc_reloaded/src/grc/gui/SignalBlockParamsDialog.py
grc/branches/grc_reloaded/src/grc/gui/elements/Param.py
Log:
blocks selection window and params dialog
Modified: grc/branches/grc_reloaded/src/grc/gui/SignalBlockParamsDialog.py
===================================================================
--- grc/branches/grc_reloaded/src/grc/gui/SignalBlockParamsDialog.py
2008-02-12 06:16:49 UTC (rev 7641)
+++ grc/branches/grc_reloaded/src/grc/gui/SignalBlockParamsDialog.py
2008-02-12 07:10:24 UTC (rev 7642)
@@ -70,7 +70,8 @@
the variable param will need an external update.
@param param the graphical parameter that initiated the
callback
"""
- map(lambda p: p.update(), filter(lambda p:
p.is_type_dependent(), self.block.get_params()))
+ #TODO
+ #map(lambda p: p.update(), filter(lambda p:
p.is_type_dependent(), self.block.get_params()))
def run(self):
"""!
Modified: grc/branches/grc_reloaded/src/grc/gui/elements/Param.py
===================================================================
--- grc/branches/grc_reloaded/src/grc/gui/elements/Param.py 2008-02-12
06:16:49 UTC (rev 7641)
+++ grc/branches/grc_reloaded/src/grc/gui/elements/Param.py 2008-02-12
07:10:24 UTC (rev 7642)
@@ -140,13 +140,13 @@
When the input changes, write the inputs to the data type.
Finish by calling the exteral callback.
"""
- new_data = self.input.get_text()
- if self.is_enum(): new_data =
self.get_option_keys()[int(new_data)]
- old_data = self.get_value()
- if old_data != new_data: self.set_value(new_data)
+ value = self.input.get_text()
+ if self.is_enum(): value = self.get_option_keys()[int(value)]
+ self.set_value(value)
#set the markup on the label, red for errors in corresponding
data type.
name = self.get_name()
- #TODO if self.variable: name = '<span
underline="low">%s</span>'%name #alter format if the param is variable
+ #TODO needs a markup is there is a callback
+ #if self.variable: name = '<span
underline="low">%s</span>'%name #alter format if the param is variable
if not self.is_valid(): self.input.set_markup('<span
foreground="red"><b>%s</b></span>'%name)
else: self.input.set_markup(name)
#set the tooltip
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r7642 - in grc/branches/grc_reloaded/src/grc/gui: . elements,
jblum <=