Hello all

Am working on a project using pygtk and am currently unable to know why
setting the foreground and background colors not working:
FGColor = gtkTConf.getConf(gtkTConf.GCONF_PREF_FGCOLOR)
        BGColor = gtkTConf.getConf(gtkTConf.GCONF_PREF_BGCOLOR)
        BGImage = gtkTConf.getConf(gtkTConf.GCONF_PREF_BGIMAGE)
        BGTrans = gtkTConf.getConfFloat(gtkTConf.GCONF_PREF_BGTRANS)
        Font = gtkTConf.getConf(gtkTConf.GCONF_PREF_FONT)

        v = vte.Terminal ()
        v.connect ("child-exited", lambda term: gtk.main_quit())
        v.connect("window-title-changed", self.window_title_changed,
"window_title_changed")
        v.fork_command()
        v.set_scroll_on_output(True)
        v.set_scroll_on_keystroke(True)
        v.set_scrollback_lines(100)

        if Font != '':
            v.set_font(pango.FontDescription(Font))
        if FGColor != '':
            v.set_color_foreground(gtk.gdk.color_parse(FGColor))
        if BGColor != '':
            v.set_color_background(gtk.gdk.color_parse(BGColor))
        if BGTrans > 0:
            v.set_opacity(int(BGTrans))
        if BGImage != '':
            v.set_background_image_file(BGImage)


as you can see setting the font, and background image is working fine while
FG, BG and BGTrans are not working... the values are correct which are like
"#fffff" for colors and numerics for transparency.


The other question is, how can i make the vte display a vertical scroll bar?


Thanks in advance
Rakan
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to