mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user