Re: Background color of text

Bruce Sherwood <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
It would seem to be an inconsistency that currently there isn't a way
to change the background of a label.

However, note that you can change the opacity, so that setting
opacity=0 (and perhaps box=False) may do what you want in your
particular case.

label currently honors scene.foreground but not scene.background; a
fix would be an incompatible change but probably worth doing.

Bruce Sherwood

On Sat, Jan 8, 2011 at 7:59 AM, Poul Riis <Poul.Riis-pIBpe43/vk1knbxzx/[email protected]> wrote:
> How can I control the background color of some text in a label (see example
> below - I would like a white background).
> Poul Riis
>
> from visual.graph import *
> pgraph = gdisplay(title='p vs t', xtitle='t (s)', ytitle='p (Pa)', x=0, y=0,
> xmax=100, ymax=20, width=500, height=215,foreground=color.black,
> background=color.white)
> label(display=pgraph.display, pos=(20,10), text="Some text",color=color.red)
>
>
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any
> company
> that requires sensitive data to be transmitted over the Web.   Learn how to
> best implement a security strategy that keeps consumers' information secure
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Visualpython-users mailing list
> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>
>

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.