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


Groups > comp.lang.python > #52761

How to change scrollbar color in pygtk ?

Date 2013-08-21 09:17 +0000
From Norah Jones <nh.jones01@gmail.com>
Subject How to change scrollbar color in pygtk ?
Newsgroups comp.lang.python
Message-ID <mailman.75.1377080541.19984.python-list@python.org> (permalink)

Show all headers | 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