From f728f2dd61af00b02525d078bbb748bfb75800e1 Mon Sep 17 00:00:00 2001 From: jblum Date: Fri, 26 Jun 2009 15:37:23 +0000 Subject: [PATCH] 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 --- gr-wxgui/src/python/forms/converters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gr-wxgui/src/python/forms/converters.py b/gr-wxgui/src/python/forms/converters.py index e535cb2d..9f757aa8 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): -- 2.39.5