Kaydet (Commit) d7300f8f authored tarafından Barry Warsaw's avatar Barry Warsaw

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

üst f67a50c2
......@@ -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:
......
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