mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Add option for no updates on typing
This commit is contained in:
parent
70787ed8ae
commit
627857e957
1 changed files with 3 additions and 1 deletions
|
|
@ -99,7 +99,9 @@ def __validate(self, text):
|
|||
# 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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue