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...
This commit is contained in:
parent
268824e089
commit
cef4c844df
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue