The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
anatoly techtonik <techto... @gmail.com>
Date: Tue, 11 Sep 2012 06:57:47 -0700 (PDT)
Local: Tues, Sep 11 2012 9:57 am
Subject: Label background
Hi,
Is it possible somehow to set background colors for text labels?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Nathan <nathan.sto... @gmail.com>
Date: Tue, 11 Sep 2012 11:42:10 -0600
Local: Tues, Sep 11 2012 1:42 pm
Subject: Re: Label background
On Tue, Sep 11, 2012 at 7:57 AM, anatoly techtonik <techto... @gmail.com>wrote:
> Hi,
> Is it possible somehow to set background colors for text labels?
You should probably investigate "background_group" on the Label API page:
http://pyglet.org/doc/api/pyglet.text.Label-class.html
Haven't used it myself, but it sure looks like what you're looking for.
~ Nathan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
anatoly techtonik <techto... @gmail.com>
Date: Tue, 2 Oct 2012 16:39:32 +0300
Local: Tues, Oct 2 2012 9:39 am
Subject: Re: Label background
On Tue, Sep 11, 2012 at 8:42 PM, Nathan <nathan.sto
... @gmail.com> wrote:
> On Tue, Sep 11, 2012 at 7:57 AM, anatoly techtonik <techto
... @gmail.com>
> wrote:
>> Hi,
>> Is it possible somehow to set background colors for text labels?
> You should probably investigate "background_group" on the Label API page:
> http://pyglet.org/doc/api/pyglet.text.Label-class.html
> Haven't used it myself, but it sure looks like what you're looking for.
"background_group" is still a mystery to me. I've found a way to set style:
label.set_style('background_color', palette.background)
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Nathan <nathan.sto... @gmail.com>
Date: Tue, 2 Oct 2012 08:29:49 -0600
Local: Tues, Oct 2 2012 10:29 am
Subject: Re: Label background
On Tue, Oct 2, 2012 at 7:39 AM, anatoly techtonik <techto... @gmail.com>wrote:
> On Tue, Sep 11, 2012 at 8:42 PM, Nathan <nathan.sto
... @gmail.com> wrote:
> > On Tue, Sep 11, 2012 at 7:57 AM, anatoly techtonik <techto
... @gmail.com>
> > wrote:
> >> Hi,
> >> Is it possible somehow to set background colors for text labels?
> > You should probably investigate "background_group" on the Label API page:
> > http://pyglet.org/doc/api/pyglet.text.Label-class.html
> > Haven't used it myself, but it sure looks like what you're looking for.
> "background_group" is still a mystery to me. I've found a way to set style:
> label.set_style('background_color', palette.background)
That looks like a nicer way to do it. Was that documented somewhere, or
did you find it in the source?
~ Nathan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
anatoly techtonik <techto... @gmail.com>
Date: Wed, 3 Oct 2012 20:52:03 +0300
Local: Wed, Oct 3 2012 1:52 pm
Subject: Re: Label background
On Tue, Oct 2, 2012 at 5:29 PM, Nathan <nathan.sto
... @gmail.com> wrote:
> On Tue, Oct 2, 2012 at 7:39 AM, anatoly techtonik <techto
... @gmail.com>
> wrote:
>> On Tue, Sep 11, 2012 at 8:42 PM, Nathan <nathan.sto... @gmail.com> wrote:
>> > On Tue, Sep 11, 2012 at 7:57 AM, anatoly techtonik <techto... @gmail.com>
>> > wrote:
>> >> Hi,
>> >> Is it possible somehow to set background colors for text labels?
>> > You should probably investigate "background_group" on the Label API
>> > page:
>> > http://pyglet.org/doc/api/pyglet.text.Label-class.html
>> > Haven't used it myself, but it sure looks like what you're looking for.
>> "background_group" is still a mystery to me. I've found a way to set
>> style:
>> label.set_style('background_color', palette.background)
> That looks like a nicer way to do it. Was that documented somewhere, or did
> you find it in the source?
Both. Traced ancestry of Label and then found it in
http://www.pyglet.org/doc/programming_guide/formatted_text.html
Of course it will be better to have a dedicate chapter about styling text.
--
anatoly t.
You must
Sign in before you can post messages.
You do not have the permission required to post.