summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/__init__.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-03-09 08:33:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-03-09 08:33:51 (GMT)
commit42a4366ad51e7a470e59d5694e75e194f18042f3 (patch)
tree8b84cfaab9cb7ae70f8601f39ecf7123945c76a4 /Lib/tkinter/__init__.py
parent0554d83f0ff7e9da5c021b57820b26a330c09129 (diff)
downloadcpython-42a4366ad51e7a470e59d5694e75e194f18042f3.zip
cpython-42a4366ad51e7a470e59d5694e75e194f18042f3.tar.gz
cpython-42a4366ad51e7a470e59d5694e75e194f18042f3.tar.bz2
Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.
Added few missed tests for configure options.
Diffstat (limited to 'Lib/tkinter/__init__.py')
-rw-r--r--Lib/tkinter/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index 4e642c6..8139e38 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -1337,8 +1337,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