Tkinter-Listbox and Unicode

Martin von Loewis loewis at informatik.hu-berlin.de
Thu Jan 24 04:32:46 EST 2002


Matthias Huening <mhuening at zedat.fu-berlin.de> writes:

> What am I doing wrong??

Nothing; that appears to be a bug in tk.splitlist, which does not
support Unicode. Please submit this as a bug report at
sf.net/projects/python.

As a work-around, doing

        res = self.l.tk.call(self.l._w,'get',0, 'end')
        for x in res.split():

might work - although this fails if one of the strings contains a
space in itself (in which case you'd have to consider Tcl escaping
mechanisms).

Regards,
Martin




More information about the Python-list mailing list