diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-09 12:43:31 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-09 12:43:31 (GMT) |
commit | b9d672491d5082c541bf267eb7bb99fdc6529324 (patch) | |
tree | 8fb2e712b66677cbc5f1033060109785e6ce3ed5 /Lib/tkinter | |
parent | f4ac4e3de21d58695c0e7a4beb3ba515db7c8acd (diff) | |
download | cpython-b9d672491d5082c541bf267eb7bb99fdc6529324.zip cpython-b9d672491d5082c541bf267eb7bb99fdc6529324.tar.gz cpython-b9d672491d5082c541bf267eb7bb99fdc6529324.tar.bz2 |
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__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 12085a9..46f86f9 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) |