Commit 448bd5ce authored by Barry Warsaw's avatar Barry Warsaw

__modified(): Make sure `rgbs' is a tuple

parent 0026b139
...@@ -93,7 +93,7 @@ class TypeinWidget(Pmw.MegaWidget): ...@@ -93,7 +93,7 @@ class TypeinWidget(Pmw.MegaWidget):
def __modified(self): def __modified(self):
# these are guaranteed to be valid, right? # these are guaranteed to be valid, right?
vals = map(lambda x: x.get(), (self.__x, self.__y, self.__z)) vals = map(lambda x: x.get(), (self.__x, self.__y, self.__z))
rgbs = map(self.__str_to_int, vals) rgbs = tuple(map(self.__str_to_int, vals))
valids = map(self.__validate, vals) valids = map(self.__validate, vals)
delegate = self['delegate'] delegate = self['delegate']
if (None not in rgbs) and (-1 not in valids) and delegate: if (None not in rgbs) and (-1 not in valids) and delegate:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment