[Python-checkins] cpython: Issue #25263: Trying to fix test_use on Windows.
serhiy.storchaka
python-checkins at python.org
Mon Nov 9 07:44:02 EST 2015
https://hg.python.org/cpython/rev/3f8998c2fbf9
changeset: 99016:3f8998c2fbf9
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Nov 09 14:43:31 2015 +0200
summary:
Issue #25263: Trying to fix test_use on Windows.
Avoid possible weird behavior of WideInt convertion.
"winfo id" always returns string hexadecimal representation.
files:
Lib/tkinter/__init__.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -845,8 +845,7 @@
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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list