summaryrefslogtreecommitdiff
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-11-09 14:43:31 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-11-09 14:43:31 +0200
commitae9b0efa053bba441a3b0f8971df300545b8425c (patch)
tree2ad0b243f02bf14e4aae1d1ac64a91f1ca29919c /Lib/tkinter
parent5db116534ac8ac68f0c1ba6f743367a8652c4e5b (diff)
downloadcpython-ae9b0efa053bba441a3b0f8971df300545b8425c.tar.gz
Issue #25263: Trying to fix test_use on Windows.
Avoid possible weird behavior of WideInt convertion. "winfo id" always returns string hexadecimal representation.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index 12085a9bd7..46f86f9d8c 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -845,8 +845,7 @@ class Misc:
self.tk.call('winfo', 'height', self._w))
def winfo_id(self):
"""Return identifier ID for this widget."""
- return self.tk.getint(
- self.tk.call('winfo', 'id', self._w))
+ return int(self.tk.call('winfo', 'id', self._w), 0)
def winfo_interps(self, displayof=0):
"""Return the name of all Tcl interpreters for this display."""
args = ('winfo', 'interps') + self._displayof(displayof)