diff options
author | Guido van Rossum <guido@python.org> | 1998-06-09 02:37:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-06-09 02:37:45 (GMT) |
commit | fe02efdbf44628329919991a4ea181183b2da9ff (patch) | |
tree | ec85491f808a0d99b6245d62499c68fdc9c5f8dd /Lib/lib-tk/Tkinter.py | |
parent | 795a4bc666a17c2c34c028f499ea3ffe70220fb2 (diff) | |
download | cpython-fe02efdbf44628329919991a4ea181183b2da9ff.zip cpython-fe02efdbf44628329919991a4ea181183b2da9ff.tar.gz cpython-fe02efdbf44628329919991a4ea181183b2da9ff.tar.bz2 |
getint() now raises ValueError, not TclError, on errors.
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 2e8a812..13eb1f6 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -569,7 +569,7 @@ class Misc: # not an integer: try: e.state = getint(s) - except TclError: + except ValueError: e.state = s e.time = getint(t) e.width = getint(w) @@ -1547,7 +1547,7 @@ class Scale(Widget): value = self.tk.call(self._w, 'get') try: return getint(value) - except TclError: + except ValueError: return getdouble(value) def set(self, value): self.tk.call(self._w, 'set', value) |