Change canvas background colour?

2 views
Skip to first unread message

John Pye

unread,
Aug 6, 2009, 9:20:24 PM8/6/09
to gapho...@googlegroups.com, Arijit Chakraborty
Hi all

Has anyone got any suggestions on how it might be possible to change the
background colour of the gaphas canvas? We were thinking of using
background colour in ASCEND as a subtle indication of the error/success
state of our solver.

Also, has anyone had cause to implement key bindings for the TAB key in
Gaphas, to move between canvas elements? Would it be possible to come up
with some kind of across-then-down ordering of the visible elements,
perhaps?

http://ascendwiki.cheme.cmu.edu/Canvas-based_modeller_for_ASCEND

Cheers
JP

Arjan Molenaar

unread,
Aug 9, 2009, 3:47:05 PM8/9/09
to gapho...@googlegroups.com, Arijit Chakraborty

On 7 Aug 2009, at 03:20, John Pye wrote:

>
> Hi all
>
> Has anyone got any suggestions on how it might be possible to change
> the
> background colour of the gaphas canvas? We were thinking of using
> background colour in ASCEND as a subtle indication of the error/
> success
> state of our solver.

The view sets it's background color by calling:

self.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#FFF'))


> Also, has anyone had cause to implement key bindings for the TAB key
> in
> Gaphas, to move between canvas elements? Would it be possible to
> come up
> with some kind of across-then-down ordering of the visible elements,
> perhaps?

Interesting idea. Have to get back to you about this (it's like
rendering a diagram, only the rendering is used to determine the
order, not what's drawn).

Regards,

Arjan

Reply all
Reply to author
Forward
0 new messages