diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-09 08:52:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-09 08:52:08 (GMT) |
commit | 2d68f18656b451302739231393c7e7c282a23c98 (patch) | |
tree | d74038e6a300677794778f0cb459139ac24c0c01 /Lib/tkinter/__init__.py | |
parent | b9f3114d42601b07c9830af8b18330bff475bcfc (diff) | |
parent | 42a4366ad51e7a470e59d5694e75e194f18042f3 (diff) | |
download | cpython-2d68f18656b451302739231393c7e7c282a23c98.zip cpython-2d68f18656b451302739231393c7e7c282a23c98.tar.gz cpython-2d68f18656b451302739231393c7e7c282a23c98.tar.bz2 |
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index eaf7af8..ffd4b4b 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -1336,8 +1336,9 @@ class Misc: self.configure({key: value}) def keys(self): """Return a list of all resource names of this widget.""" - return [x[0][1:] for x in - self.tk.splitlist(self.tk.call(self._w, 'configure'))] + splitlist = self.tk.splitlist + return [splitlist(x)[0][1:] for x in + splitlist(self.tk.call(self._w, 'configure'))] def __str__(self): """Return the window path name of this widget.""" return self._w |