background color

From: Daniel Carvalho <idnael_at_gmail.com>
Date: Tue Dec 02 2008 - 18:06:40 CET

is it possible to set the background color or text color used by abiwidget?

this doesn't work:

        editor=abiword.Canvas()
        editor.load_file(path,path)

        color=gtk.gdk.color_parse("blue")
        editor.modify_bg(gtk.STATE_NORMAL,color)
        editor.modify_base(gtk.STATE_NORMAL,color)

        color=gtk.gdk.color_parse("red")
        editor.modify_fg(gtk.STATE_NORMAL,color)
        editor.modify_text(gtk.STATE_NORMAL,color)

        editor.show()
Received on Tue Dec 2 18:07:10 2008

This archive was generated by hypermail 2.1.8 : Tue Dec 02 2008 - 18:07:10 CET