summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/TypeinViewer.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-03-16 23:09:04 (GMT)
committerBarry Warsaw <barry@python.org>1998-03-16 23:09:04 (GMT)
commit627857e9577c127f1360c634ba8c19d4274aceb6 (patch)
treef6b35ce10fe1392cf3a13a0615d8699b29bb88d9 /Tools/pynche/TypeinViewer.py
parent70787ed8ae896a94ab1dc4399472ca70a79edd87 (diff)
downloadcpython-627857e9577c127f1360c634ba8c19d4274aceb6.zip
cpython-627857e9577c127f1360c634ba8c19d4274aceb6.tar.gz
cpython-627857e9577c127f1360c634ba8c19d4274aceb6.tar.bz2
Add option for no updates on typing
Diffstat (limited to 'Tools/pynche/TypeinViewer.py')
-rw-r--r--Tools/pynche/TypeinViewer.py4
1 files changed, 3 insertions, 1 deletions
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']