Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Label background
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
anatoly techtonik  
View profile  
 More options Sep 11 2012, 9:57 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Sep 11 2012, 1:42 pm
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
anatoly techtonik  
View profile  
 More options Oct 2 2012, 9:39 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Oct 2 2012, 10:29 am
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:

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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
anatoly techtonik  
View profile  
 More options Oct 3 2012, 1:52 pm
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

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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »