]> granicus.if.org Git - python/commitdiff
-- don't mess up in winfo_visualsavailable if the system only
authorFredrik Lundh <fredrik@pythonware.com>
Wed, 9 Aug 2000 19:26:47 +0000 (19:26 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Wed, 9 Aug 2000 19:26:47 +0000 (19:26 +0000)
   supports a single visual (closes bug #110603)

Lib/lib-tk/Tkinter.py

index ec8aaafd205a9c925bdb0283ca3e1b9197ea2cf5..e2f09a5a72b4033e6ffc7918c23ab6ca98d2e911 100644 (file)
@@ -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."""