commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r11294 - gnuradio/trunk/gr-wxgui/src/python/forms


From: jblum
Subject: [Commit-gnuradio] r11294 - gnuradio/trunk/gr-wxgui/src/python/forms
Date: Fri, 26 Jun 2009 09:37:23 -0600 (MDT)

Author: jblum
Date: 2009-06-26 09:37:23 -0600 (Fri, 26 Jun 2009)
New Revision: 11294

Modified:
   gnuradio/trunk/gr-wxgui/src/python/forms/converters.py
Log:
cast choices to a list because .index method DNE in python2.5 for tuple

Modified: gnuradio/trunk/gr-wxgui/src/python/forms/converters.py
===================================================================
--- gnuradio/trunk/gr-wxgui/src/python/forms/converters.py      2009-06-26 
03:39:00 UTC (rev 11293)
+++ gnuradio/trunk/gr-wxgui/src/python/forms/converters.py      2009-06-26 
15:37:23 UTC (rev 11294)
@@ -53,7 +53,8 @@
        Used in the chooser base and all sub-classes.
        """
        def __init__(self, choices):
-               self._choices = choices
+               #choices must be a list because tuple does not have .index() in 
python2.5
+               self._choices = list(choices)
        def external_to_internal(self, choice):
                return self._choices.index(choice)
        def internal_to_external(self, index):





reply via email to

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