summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuilherme Polo <ggpolo@gmail.com>2009-08-18 13:29:20 (GMT)
committerGuilherme Polo <ggpolo@gmail.com>2009-08-18 13:29:20 (GMT)
commit6c823f8720d56ce687e9c3c871ea69d263398cfe (patch)
tree90cd221526df177d36289b5d33cd96bbbf99c157 /Lib
parentd3e6e4bb8ff2a88afd6d2cc09dd199defbef36a4 (diff)
downloadcpython-6c823f8720d56ce687e9c3c871ea69d263398cfe.zip
cpython-6c823f8720d56ce687e9c3c871ea69d263398cfe.tar.gz
cpython-6c823f8720d56ce687e9c3c871ea69d263398cfe.tar.bz2
Issue #1250469: Fix the return value of Tix.PanedWindow.panes.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/lib-tk/Tix.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py
index 175241f..d2ede36 100755
--- a/Lib/lib-tk/Tix.py
+++ b/Lib/lib-tk/Tix.py
@@ -1235,11 +1235,8 @@ class PanedWindow(TixWidget):
self.tk.call(self._w, 'paneconfigure', entry, *self._options(cnf, kw))
def panes(self):
- names = self.tk.call(self._w, 'panes')
- ret = []
- for x in names:
- ret.append(self.subwidget(x))
- return ret
+ names = self.tk.splitlist(self.tk.call(self._w, 'panes'))
+ return [self.subwidget(x) for x in names]
class PopupMenu(TixWidget):
"""PopupMenu widget can be used as a replacement of the tk_popup command.