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

This commit is contained in:
Barry Warsaw 1998-02-18 00:06:20 +00:00
parent f67a50c2e1
commit d7300f8f56
1 changed files with 1 additions and 1 deletions

View File

@ -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: