Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52761

How to change scrollbar color in pygtk ?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <nh.jones01@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.286
X-Spam-Level **
X-Spam-Evidence '*H*': 0.54; '*S*': 0.12; 'subject:How': 0.10; 'skip:t 90': 0.16; 'subject: ?': 0.16; 'thanks,': 0.17; 'code,': 0.22; 'tried': 0.27; 'cases': 0.33; 'test': 0.35; 'received:google.com': 0.35; 'hi,': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'color': 0.61; 'header:Reply-to:1': 0.77; 'reply- to:addr:gmail.com': 0.80; 'beside': 0.84; 'header:Return-Path:2': 0.84; 'subject:color': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:to:from:reply-to:subject:message-id:mime-version :content-transfer-encoding:content-type; bh=lEXqfveEeSzQOt+sGmOnM4mJeIPUWCPddcuNzBwCQos=; b=vW+kl8eXwFzJkHaWfOXd4j6gen+ZFy47v+jJJ988bur4t/u226XBIqOOssFH5wcWvk wz81vpSfep/TZelKsAAPO5ZKaCeVHlQiMAJt6W+DfuQSzgbzTkpO6LjpVqZH2myt/a6y P7cbbjO4oSGt6Zs6LdGZ6QKKaQtfPhpV+akvhq14OajtK7iIIPC8yPHL3YBlRtm9u4ZB WYTVlBULavQuSGnMkQo2/tIjD4vKwBF1UQNh9+Fqkwocp1oQdH5Kyss7KCE3K8kviQcr 7tPgMJ34vd8G0MiV0Q2drRP6repttJMHzFU82oIZTq3suem8z3S/AyWYijdPC6OIPLvP xG8w==
X-Received by 10.68.196.37 with SMTP id ij5mr6614847pbc.175.1377076660686; Wed, 21 Aug 2013 02:17:40 -0700 (PDT)
Date Wed, 21 Aug 2013 09:17:38 +0000
To python-list@python.org
From Norah Jones <nh.jones01@gmail.com>
Subject How to change scrollbar color in pygtk ?
X-Priority 3
X-Mailer CatPHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version 1.0
Content-Transfer-Encoding 8bit
Content-Type text/plain; charset="utf-8"
X-Mailman-Approved-At Wed, 21 Aug 2013 12:22:20 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To Norah Jones <nh.jones01@gmail.com>
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.75.1377080541.19984.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377080541 news.xs4all.nl 15883 [2001:888:2000:d::a6]:54174
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52761

Show key headers only | View raw


Hi, 

I Tried the below code, the color is not reflected, Am i missing something?

#add description box beside test cases
        testCaseDescWindow = gtk.ScrolledWindow()
        testCaseDescWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
        testCaseDescWindow.get_vscrollbar().modify_fg(gtk.STATE_NORMAL,gtk.gdk.color_parse('#40515F'))
        testCaseDescWindow.get_hscrollbar().modify_fg(gtk.STATE_NORMAL,gtk.gdk.color_parse('#40515F'))


Thanks,
Norah Jones

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

How to change scrollbar color in pygtk ? Norah Jones <nh.jones01@gmail.com> - 2013-08-21 09:17 +0000

csiph-web