summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-09 02:37:45 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-09 02:37:45 (GMT)
commitfe02efdbf44628329919991a4ea181183b2da9ff (patch)
treeec85491f808a0d99b6245d62499c68fdc9c5f8dd /Lib/lib-tk
parent795a4bc666a17c2c34c028f499ea3ffe70220fb2 (diff)
downloadcpython-fe02efdbf44628329919991a4ea181183b2da9ff.zip
cpython-fe02efdbf44628329919991a4ea181183b2da9ff.tar.gz
cpython-fe02efdbf44628329919991a4ea181183b2da9ff.tar.bz2
getint() now raises ValueError, not TclError, on errors.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py4
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)