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
Message from discussion Label background

Received: by 10.58.187.168 with SMTP id ft8mr5319236vec.7.1349188191414;
        Tue, 02 Oct 2012 07:29:51 -0700 (PDT)
X-BeenThere: pyglet-users@googlegroups.com
Received: by 10.52.20.7 with SMTP id j7ls310961vde.0.gmail; Tue, 02 Oct 2012
 07:29:50 -0700 (PDT)
Received: by 10.58.28.228 with SMTP id e4mr3045395veh.4.1349188190330;
        Tue, 02 Oct 2012 07:29:50 -0700 (PDT)
Received: by 10.58.28.228 with SMTP id e4mr3045394veh.4.1349188190318;
        Tue, 02 Oct 2012 07:29:50 -0700 (PDT)
Return-Path: <nathan.sto...@gmail.com>
Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181])
        by gmr-mx.google.com with ESMTPS id s13si60397vde.2.2012.10.02.07.29.50
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 02 Oct 2012 07:29:50 -0700 (PDT)
Received-SPF: pass (google.com: domain of nathan.sto...@gmail.com designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of nathan.sto...@gmail.com designates 209.85.220.181 as permitted sender) smtp.mail=nathan.sto...@gmail.com; dkim=pass header...@gmail.com
Received: by vchn11 with SMTP id n11so7238964vch.26
        for <pyglet-users@googlegroups.com>; Tue, 02 Oct 2012 07:29:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=l3xZ50xrY+pTVndqpbhwXQiLde/zjR0pWnXgyOcuYtk=;
        b=BT+SJsZLihK7tlAS4+XGlG7sWQCK7XHTyKrTWKhnVUYvKq/EYQpsvbGGB4V3wk/HLq
         DrJpZThaNxy0nuFwRPZoHJPbMpsieKuU4RBY/BPrmXOKyIWWjgoOx3JPlEHjLHxOgua8
         0US9onZNnVmISLAcWBbjj4bWhmzzTJd9VBTLdh15Izx5wyzHEyGMjFZ5pT2bvvKybFxz
         OhoTXxYhUJi1TRsL6xb98wYYxJoA1ELZAYt9idovGeC6LknMZKS9K2TU4VIC5tBzPNAj
         jLd0OyMLqdwW6lbgfkXlIlyDikKqzQM36Jg7JqMwRNd15gR5CQwD08zWjTLrHymbnw6p
         O1kQ==
MIME-Version: 1.0
Received: by 10.58.32.234 with SMTP id m10mr10349180vei.60.1349188189981; Tue,
 02 Oct 2012 07:29:49 -0700 (PDT)
Received: by 10.58.254.103 with HTTP; Tue, 2 Oct 2012 07:29:49 -0700 (PDT)
In-Reply-To: <CAPkN8x+bg0=wGz0_-9RmL0Chuo+m8-Ac7UDMJ7M954UpSjA...@mail.gmail.com>
References: <bb9d93ed-b5d4-4a19-adaa-8b5b45916c6d@googlegroups.com>
	<CALtqtKTRpbbviMHsjGN6M2vkiCTwZpfnceuaFu0HVLY-kP2...@mail.gmail.com>
	<CAPkN8x+bg0=wGz0_-9RmL0Chuo+m8-Ac7UDMJ7M954UpSjA...@mail.gmail.com>
Date: Tue, 2 Oct 2012 08:29:49 -0600
Message-ID: <CALtqtKRc-8j=8CdBrQsCKmSjyQ9r+Aq7vU=5TL-KK17MzYj...@mail.gmail.com>
Subject: Re: Label background
From: Nathan <nathan.sto...@gmail.com>
To: pyglet-users@googlegroups.com
Content-Type: multipart/alternative; boundary=047d7b2ee4cbcc8a4b04cb145a2a

--047d7b2ee4cbcc8a4b04cb145a2a
Content-Type: text/plain; charset=ISO-8859-1

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

--047d7b2ee4cbcc8a4b04cb145a2a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">On Tue, Oct 2, 2012 at 7:39 AM, anatoly techtoni=
k <span dir=3D"ltr">&lt;<a href=3D"mailto:techto...@gmail.com" target=3D"_b=
lank">techto...@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gma=
il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef=
t:1ex">
<div class=3D"HOEnZb"><div class=3D"h5">On Tue, Sep 11, 2012 at 8:42 PM, Na=
than &lt;<a href=3D"mailto:nathan.sto...@gmail.com">nathan.sto...@gmail.com=
</a>&gt; wrote:<br>
&gt; On Tue, Sep 11, 2012 at 7:57 AM, anatoly techtonik &lt;<a href=3D"mail=
to:techto...@gmail.com">techto...@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; Is it possible somehow to set background colors for text labels?<b=
r>
&gt;<br>
&gt;<br>
&gt; You should probably investigate &quot;background_group&quot; on the La=
bel API page:<br>
&gt;<br>
&gt; <a href=3D"http://pyglet.org/doc/api/pyglet.text.Label-class.html" tar=
get=3D"_blank">http://pyglet.org/doc/api/pyglet.text.Label-class.html</a><b=
r>
&gt;<br>
&gt; Haven&#39;t used it myself, but it sure looks like what you&#39;re loo=
king for.<br>
<br>
</div></div>&quot;background_group&quot; is still a mystery to me. I&#39;ve=
 found a way to set style:<br>
<br>
=A0 =A0 label.set_style(&#39;background_color&#39;, palette.background)<br>
<div class=3D"im HOEnZb"></div></blockquote></div><br><div>That looks like =
a nicer way to do it. =A0Was that documented somewhere, or did you find it =
in the source?</div><div><br></div><div>~ Nathan</div>

--047d7b2ee4cbcc8a4b04cb145a2a--