Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.032 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'works.': 0.07; 'cc:addr :python-list': 0.09; 'issue?': 0.09; 'wed,': 0.15; 'confusion': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'set,': 0.16; 'subject:colors': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'color,': 0.22; 'either.': 0.22; 'visible': 0.22; 'am,': 0.23; 'thanks,': 0.24; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'example': 0.26; 'not.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'styles': 0.29; 'probably': 0.31; 'received:google.com': 0.35; "isn't": 0.35; 'but': 0.36; 'there': 0.36; 'subject:: ': 0.37; 'setting': 0.37; 'several': 0.38; 'does': 0.39; 'some': 0.40; 'your': 0.60; 'is.': 0.63; 'different': 0.63; 'necessarily': 0.63; 'you.': 0.64; 'color': 0.67; 'jul': 0.72; 'chrisa': 0.84; 'gtk,': 0.84; 'to:none': 0.91 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:cc :content-type; bh=DpTjPBn7MiotoDCCZIhsHrtFRDtwx011xiH5bdBjDFM=; b=SLrgcWTa11W2+w31hQRUqD+ewsZIA9FdOsxME7K97Jh9IvWSyRN4NoSsC7u9LA3Mi6 hWFZKmJN/O6Xm/INZ4F2wBywDCjpll0dQ5w123Ig0HPkNtjIDu8NLIxuZZ0rSYKkwX4b ci6UxKNqxtjDt6F3UsVLPlyQHs6k0UGu+7Zx698CZ9t9N7motTiFYUZIIyiLbydMFD3+ Me8EsQrca/Ik43mgVaOeI3vAJBHampYHqG3XesylVYezWLTmzJvm89EcyYttmJcMHxUt sWgRqMCzT/nkZ3KA5/q3KDEDCk53yYCutKqH4Rf+6aXlfbZKRSBUz+K1QrgIgJCUPc/i yxVA== MIME-Version: 1.0 X-Received: by 10.107.17.229 with SMTP id 98mr4843759ior.21.1436291871132; Tue, 07 Jul 2015 10:57:51 -0700 (PDT) In-Reply-To: <97288ef7-1d9e-4afc-b4e3-534582ccd059@googlegroups.com> References: <3b7fcd33-8ba6-44f7-abf8-ad55458eb96a@googlegroups.com> <97288ef7-1d9e-4afc-b4e3-534582ccd059@googlegroups.com> Date: Wed, 8 Jul 2015 03:57:51 +1000 Subject: Re: pygtk2 and colors From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1436291880 news.xs4all.nl 2961 [2001:888:2000:d::a6]:40135 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3884 X-Received-Body-CRC: 650114634 Xref: csiph.com comp.lang.python:93564 On Wed, Jul 8, 2015 at 3:25 AM, wrote: > On Tuesday, July 7, 2015 at 11:54:21 AM UTC-5, Cousin Stanley wrote: >> You might try .... >> >> self.set_rgb_fg_color( fg ) > > Well thanks, that works. Yet set_rgb_bg_color() does not. And I notice that the example at the link you sent doesn't set the background color either. Do I have a color overlay or masking issue? Part of your confusion may be because "background" isn't necessarily what you think it is. In GTK, there are several different ways styles can be set, and probably you _are_ setting the background color, but it's not having any visible change. Try playing around with some of the other settable colors, and see if one of them helps you. ChrisA