]> granicus.if.org Git - python/commitdiff
Issue #1250469: Fix the return value of Tix.PanedWindow.panes.
authorGuilherme Polo <ggpolo@gmail.com>
Tue, 18 Aug 2009 13:29:20 +0000 (13:29 +0000)
committerGuilherme Polo <ggpolo@gmail.com>
Tue, 18 Aug 2009 13:29:20 +0000 (13:29 +0000)
Lib/lib-tk/Tix.py
Misc/NEWS

index 175241ff6ee3f87063981b0243ac5c79a74e5789..d2ede366aacae0c56bf828c4d0ec4ada6aa953f8 100755 (executable)
@@ -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.
index ca3c5e853b379a92276b8ff818a05686b27e5bda..fa0d29a45cfd849925c10b961ce6391d79ccd65f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -359,6 +359,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #1250469: Fix the return value of Tix.PanedWindow.panes.
+
 - Issue #1119673: Do not override Tkinter.Text methods when creating a
   ScrolledText.