diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-08-09 19:26:47 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-08-09 19:26:47 (GMT) |
commit | 24037f735fbeebee0a60905375ceb05bb5539a63 (patch) | |
tree | b9e403459285acbe366ca2a5e2d23193ba3f4268 /Lib | |
parent | 289ad8f06354eaac2ce8174d52265292a6e71965 (diff) | |
download | cpython-24037f735fbeebee0a60905375ceb05bb5539a63.zip cpython-24037f735fbeebee0a60905375ceb05bb5539a63.tar.gz cpython-24037f735fbeebee0a60905375ceb05bb5539a63.tar.bz2 |
-- don't mess up in winfo_visualsavailable if the system only
supports a single visual (closes bug #110603)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index ec8aaaf..e2f09a5 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.""" |