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
>
> 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