mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
Issue #25263: Trying to fix test_use on Windows.
Avoid possible weird behavior of WideInt convertion. "winfo id" always returns string hexadecimal representation.
This commit is contained in:
parent
f4ac4e3de2
commit
b9d672491d
1 changed files with 1 additions and 2 deletions
|
|
@ -845,8 +845,7 @@ class Misc:
|
||||||
self.tk.call('winfo', 'height', self._w))
|
self.tk.call('winfo', 'height', self._w))
|
||||||
def winfo_id(self):
|
def winfo_id(self):
|
||||||
"""Return identifier ID for this widget."""
|
"""Return identifier ID for this widget."""
|
||||||
return self.tk.getint(
|
return int(self.tk.call('winfo', 'id', self._w), 0)
|
||||||
self.tk.call('winfo', 'id', self._w))
|
|
||||||
def winfo_interps(self, displayof=0):
|
def winfo_interps(self, displayof=0):
|
||||||
"""Return the name of all Tcl interpreters for this display."""
|
"""Return the name of all Tcl interpreters for this display."""
|
||||||
args = ('winfo', 'interps') + self._displayof(displayof)
|
args = ('winfo', 'interps') + self._displayof(displayof)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue