From 627857e9577c127f1360c634ba8c19d4274aceb6 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 16 Mar 1998 23:09:04 +0000 Subject: Add option for no updates on typing --- Tools/pynche/TypeinViewer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/pynche/TypeinViewer.py b/Tools/pynche/TypeinViewer.py index 2782799..2285184 100644 --- a/Tools/pynche/TypeinViewer.py +++ b/Tools/pynche/TypeinViewer.py @@ -99,7 +99,9 @@ class TypeinWidget(Pmw.MegaWidget): # called whenever a text entry is modified def __modified(self, force=None): # these are guaranteed to be valid, right? - vals = map(lambda x: x.get(), (self.__x, self.__y, self.__z)) + vals = [] + for field in (self.__x, self.__y, self.__z): + vals.append(field.get()) rgbs = tuple(map(self.__str_to_int, vals)) valids = map(self.__validate, vals) delegate = self['delegate'] -- cgit v0.12