summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/__init__.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-07-05 13:58:24 (GMT)
committerGitHub <noreply@github.com>2017-07-05 13:58:24 (GMT)
commitc48a000c74b48586742c4b7eb42bba93f15953a9 (patch)
tree6700e5468ad0965f2233b32c2e561a923f44184b /Lib/tkinter/__init__.py
parent320ee67f981f766ff55c55ef87d5ef17ce297824 (diff)
downloadcpython-c48a000c74b48586742c4b7eb42bba93f15953a9.zip
cpython-c48a000c74b48586742c4b7eb42bba93f15953a9.tar.gz
cpython-c48a000c74b48586742c4b7eb42bba93f15953a9.tar.bz2
[3.5] bpo-30855: Trying to fix test_use on Windows. (#2585)
* bpo-30855: Trying to fix test_use on Windows. Avoid possible weird behavior of WideInt convertion. "winfo id" always returns string hexadecimal representation. (cherry picked from commit b9d672491d5082c541bf267eb7bb99fdc6529324) * bpo-30855: Trying to fix test_use on Windows. (cherry picked from commit 29a2f7c6b38e5a6ed891aa72af38974a1ff2d372)
Diffstat (limited to 'Lib/tkinter/__init__.py')
-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 1a3bf88..5eeefbb 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -854,8 +854,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)