From cef4c844df324979f25ffec172c141a5d5c4672e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 19 Jun 1998 04:35:45 +0000 Subject: [PATCH] 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... --- Lib/lib-tk/Tkinter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index a508d26d12c..d7e73cfb4b7 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)