diff options
author | Guido van Rossum <guido@python.org> | 1998-06-19 04:35:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-06-19 04:35:45 (GMT) |
commit | cef4c844df324979f25ffec172c141a5d5c4672e (patch) | |
tree | d7d8f41e839568346ac229a115a5c7ddac7ade49 | |
parent | 268824e089060dcc5d62a538cc19db6652daaa79 (diff) | |
download | cpython-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...
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 2 |
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) |