__modified(): Make sure `rgbs' is a tuple
This commit is contained in:
parent
f67a50c2e1
commit
d7300f8f56
|
@ -93,7 +93,7 @@ class TypeinWidget(Pmw.MegaWidget):
|
|||
def __modified(self):
|
||||
# these are guaranteed to be valid, right?
|
||||
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)
|
||||
delegate = self['delegate']
|
||||
if (None not in rgbs) and (-1 not in valids) and delegate:
|
||||
|
|
Loading…
Reference in New Issue