]> granicus.if.org Git - python/commitdiff
Issue #25263: Trying to fix test_use on Windows.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 9 Nov 2015 12:43:31 +0000 (14:43 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 9 Nov 2015 12:43:31 +0000 (14:43 +0200)
Avoid possible weird behavior of WideInt convertion.
"winfo id" always returns string hexadecimal representation.

Lib/tkinter/__init__.py

index 12085a9bd788a1261a52bb420cb548df523968ca..46f86f9d8c3e5775817bf827cd6fe645c2844f5b 100644 (file)
@@ -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)