[pygtk] gtk.IconView change highlight color of selected item

Matthieu Cadet matthieu.cadet at gmail.com
Fri Mar 18 00:47:11 WST 2011


Ok nevermind... i've found solution just 2 min after posting here :P

widget.modify_base(gtk.STATE_ACTIVE, gtk.gdk.Color(red = 65535, green =
65535, blue = 65535, pixel = 0))
widget.modify_base(gtk.STATE_SELECTED, gtk.gdk.Color(red = 65535, green =
65535, blue = 65535, pixel = 0))

i've put these two lines to make highlight selection color to transparent,
it works!

2011/3/17 Matthieu Cadet <matthieu.cadet at gmail.com>

> Hi!
>
> Does anybody know how to change the highlight color of an selected
> item on the gtk.IconView ?
>
> i've made some test with:
>
> widget.modify_fg(gtk.STATE_ACTIVE, gtk.gdk.color_parse("red"))
>
> but the color of the selected item remains the same ...
>
> any ideas on how to do this ?
>
> thanks!
> m.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110317/612c24d6/attachment.html>


More information about the pygtk mailing list