From 022f049fededad8a2e8e902effd42eca19fbf2b1 Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Mon, 22 Nov 2010 19:40:51 +0000 Subject: Issue #6878: Fixed return type of tkinter methods documented to return lists. --- Lib/tkinter/tix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/tkinter/tix.py') diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py index 1ec0e5434d..3326adc196 100644 --- a/Lib/tkinter/tix.py +++ b/Lib/tkinter/tix.py @@ -268,10 +268,10 @@ class Form: return self.tk.call('tixForm', 'info', self._w, option) def slaves(self): - return map(self._nametowidget, - self.tk.splitlist( + return [self._nametowidget(x) for x in + self.tk.splitlist( self.tk.call( - 'tixForm', 'slaves', self._w))) + 'tixForm', 'slaves', self._w))] -- cgit v1.2.1