From: Fredrik Lundh Date: Wed, 9 Aug 2000 19:26:47 +0000 (+0000) Subject: -- don't mess up in winfo_visualsavailable if the system only X-Git-Tag: v2.0b1~524 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24037f735fbeebee0a60905375ceb05bb5539a63;p=python -- don't mess up in winfo_visualsavailable if the system only supports a single visual (closes bug #110603) --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index ec8aaafd20..e2f09a5a72 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -774,6 +774,8 @@ class Misc: data = self.tk.split( self.tk.call('winfo', 'visualsavailable', self._w, includeids and 'includeids' or None)) + if type(data) is StringType: + data = [self.tk.split(data)] return map(self.__winfo_parseitem, data) def __winfo_parseitem(self, t): """Internal function."""