commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10091 - gnuradio/trunk/grc/src/platforms/base


From: jblum
Subject: [Commit-gnuradio] r10091 - gnuradio/trunk/grc/src/platforms/base
Date: Sat, 29 Nov 2008 19:58:33 -0700 (MST)

Author: jblum
Date: 2008-11-29 19:58:32 -0700 (Sat, 29 Nov 2008)
New Revision: 10091

Modified:
   gnuradio/trunk/grc/src/platforms/base/Param.py
Log:
enum

Modified: gnuradio/trunk/grc/src/platforms/base/Param.py
===================================================================
--- gnuradio/trunk/grc/src/platforms/base/Param.py      2008-11-29 22:54:42 UTC 
(rev 10090)
+++ gnuradio/trunk/grc/src/platforms/base/Param.py      2008-11-30 02:58:32 UTC 
(rev 10091)
@@ -231,7 +231,7 @@
                self._value = str(value) #must be a string
 
        def get_type(self): return 
self.get_parent().resolve_dependencies(self._type)
-       def is_enum(self): return self._type == 'enum'
+       def is_enum(self): return bool(self.get_options())
 
        def get_input_class(self):
                """





reply via email to

[Prev in Thread] Current Thread [Next in Thread]