Re: background color

From: Martin Sevior <msevior_at_gmail.com>
Date: Wed Dec 03 2008 - 02:53:31 CET

Hi Daniel,
               The color of the abiwidget canvas is a document
property, set by the section property "background-color". You set it
via the "format->Page Background" menu item.

There is code to set this independently of the section property but we
did not expose this to abiwidget.

Is this an important feature for you? It is not hard to implement if
you need it however it gets confusing if the user loads a document
where the page-background color is different.

Cheers

Martin

On Wed, Dec 3, 2008 at 4:06 AM, Daniel Carvalho <idnael@gmail.com> wrote:
>
> 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 Wed Dec 3 02:54:03 2008

This archive was generated by hypermail 2.1.8 : Wed Dec 03 2008 - 02:54:03 CET