From: Guilherme Polo Date: Tue, 18 Aug 2009 13:29:20 +0000 (+0000) Subject: Issue #1250469: Fix the return value of Tix.PanedWindow.panes. X-Git-Tag: v2.7a1~643 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c823f8720d56ce687e9c3c871ea69d263398cfe;p=python Issue #1250469: Fix the return value of Tix.PanedWindow.panes. --- diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py index 175241ff6e..d2ede366aa 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. diff --git a/Misc/NEWS b/Misc/NEWS index ca3c5e853b..fa0d29a45c 100644 --- 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.