diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-09 10:52:08 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-09 10:52:08 +0200 |
commit | 209e3e05315388e0f603bb295113727b14ad5834 (patch) | |
tree | 65229fbc678edc27da243633eb2348394eabcec0 /Lib/tkinter/__init__.py | |
parent | 8172060634394e7f882bd597097ecb2b6e1967fd (diff) | |
parent | 70edb9b6a2b7a3e50829d5a4677bd3603e436b04 (diff) | |
download | cpython-209e3e05315388e0f603bb295113727b14ad5834.tar.gz |
Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.
Diffstat (limited to 'Lib/tkinter/__init__.py')
-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 8139e38452..ffd4b4bc68 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) |