Commit 24037f73 authored by Fredrik Lundh's avatar Fredrik Lundh

-- don't mess up in winfo_visualsavailable if the system only

   supports a single visual (closes bug #110603)
parent 289ad8f0
......@@ -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."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment