summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-19 04:35:45 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-19 04:35:45 (GMT)
commitcef4c844df324979f25ffec172c141a5d5c4672e (patch)
treed7d8f41e839568346ac229a115a5c7ddac7ade49 /Lib/lib-tk
parent268824e089060dcc5d62a538cc19db6652daaa79 (diff)
downloadcpython-cef4c844df324979f25ffec172c141a5d5c4672e.zip
cpython-cef4c844df324979f25ffec172c141a5d5c4672e.tar.gz
cpython-cef4c844df324979f25ffec172c141a5d5c4672e.tar.bz2
Turns out that 'winfo id' returns the id as a hex string, with 0x prefix.
The int() function (aliased to getint()) doesn't handle that, so we must use self.tk.getint() again...
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index a508d26..d7e73cf 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -332,7 +332,7 @@ class Misc:
return getint(
self.tk.call('winfo', 'height', self._w))
def winfo_id(self):
- return getint(
+ return self.tk.getint(
self.tk.call('winfo', 'id', self._w))
def winfo_interps(self, displayof=0):
args = ('winfo', 'interps') + self._displayof(displayof)