diff options
author | jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-06-26 15:37:23 +0000 |
---|---|---|
committer | jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-06-26 15:37:23 +0000 |
commit | f728f2dd61af00b02525d078bbb748bfb75800e1 (patch) | |
tree | 9caaac88febbc785772e96d17e77b5f08d26e5ef /gr-wxgui | |
parent | 80a5f5537dcc9a2344d9a127d7dcdee5e69e05cd (diff) |
cast choices to a list because .index method DNE in python2.5 for tuple
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11294 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-wxgui')
-rw-r--r-- | gr-wxgui/src/python/forms/converters.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-wxgui/src/python/forms/converters.py b/gr-wxgui/src/python/forms/converters.py index e535cb2dd1..9f757aa841 100644 --- a/gr-wxgui/src/python/forms/converters.py +++ b/gr-wxgui/src/python/forms/converters.py @@ -53,7 +53,8 @@ class chooser_converter(abstract_converter): 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): |