Hi all,
I wanted to use a png file to be my python program's backgound image.
Having followed internet suggestion, I use gtkrcstyle to do this job.
In python codes, I use this codes to parse rc string:
gtk.rc_parse_string(color_rc)
And the color_rc is as follows:
Code:
color_rc= """
pixmap_path "/usr/share/*****/pixmaps"
style "bar" {
engine "pixmap"{
function = FLAT_BOX
file = "filtertype.png"
stretch = TRUE
}
} widget "*foo" style "bar"
But I found this doesn't work.gtk.rc_parse_string didn't parse engine "pixmap".
The gtk.rc_parse_string just parse bg_pixmap[NORMAL] = "filtertype.png".
How to use the gtk engine to stretch the background image?
Thanks.
Jimtony