Commit cef4c844 authored by Guido van Rossum's avatar Guido van Rossum

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...
parent 268824e0
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment