Joseph A Knapka
jknapka at earthlink.net
Sat Aug 10 00:31:56 CEST 2002
Matthias Huening wrote:
> Is it possible to change the color (background and/or foreground)
> of some of the entries of a listbox?
> Thanks, Matthias
from Tkinter import *
root = Tk()
l = Listbox(root)
That works on Python 2.2. Older versions (pre-2.1, maybe?)
didn't implement itemconfig for listboxes. That's easily
fixed by editing Tkinter.py and copying the definition
of the itemconfig method from Canvas to Listbox, IIRC.
More information about the Python-list