> Hi,
> I am trying to figure out how to change the background in a Clist row, and
> i dont know what i am supposed to pass as the color perameter. Thanks.
>
> - lex
#!/usr/bin/python
from gtk import *
win = GtkWindow ()
win.set_usize (200, 200)
win.connect ("destroy", mainquit)
clist = GtkCList ()
win.add (clist)
color = clist.get_colormap().alloc (0xffff, 0x0000, 0x0000)
for row in range (5):
clist.append (("test",))
clist.set_background (row, color)
for i in range (5):
clist.append (("test",))
win.show_all ()
mainloop ()
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]