[Python-checkins] r74508 - in python/trunk: Lib/lib-tk/Tix.py Misc/NEWS

guilherme.polo python-checkins at python.org
Tue Aug 18 15:29:20 CEST 2009


Author: guilherme.polo
Date: Tue Aug 18 15:29:20 2009
New Revision: 74508
Log:
Issue #1250469: Fix the return value of Tix.PanedWindow.panes.
Modified:
 python/trunk/Lib/lib-tk/Tix.py
 python/trunk/Misc/NEWS
Modified: python/trunk/Lib/lib-tk/Tix.py
==============================================================================
--- python/trunk/Lib/lib-tk/Tix.py	(original)
+++ python/trunk/Lib/lib-tk/Tix.py	Tue Aug 18 15:29:20 2009
@@ -1235,11 +1235,8 @@
 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.
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Tue Aug 18 15:29:20 2009
@@ -359,6 +359,8 @@
 Library
 -------
 
+- Issue #1250469: Fix the return value of Tix.PanedWindow.panes.
+
 - Issue #1119673: Do not override Tkinter.Text methods when creating a
 ScrolledText.
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /