Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9d6724

Browse files
Issue #25263: Trying to fix test_use on Windows.
Avoid possible weird behavior of WideInt convertion. "winfo id" always returns string hexadecimal representation.
1 parent f4ac4e3 commit b9d6724

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/tkinter/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,7 @@ def winfo_height(self):
845845
self.tk.call('winfo', 'height', self._w))
846846
def winfo_id(self):
847847
"""Return identifier ID for this widget."""
848-
return self.tk.getint(
849-
self.tk.call('winfo', 'id', self._w))
848+
return int(self.tk.call('winfo', 'id', self._w), 0)
850849
def winfo_interps(self, displayof=0):
851850
"""Return the name of all Tcl interpreters for this display."""
852851
args = ('winfo', 'interps') + self._displayof(displayof)

0 commit comments

Comments
 (0)