How to set PyGtk toolbuttons label color?
Posted
by
Voidcode
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Voidcode
Published on 2012-06-29T08:38:43Z
Indexed on
2012/06/29
9:23 UTC
Read the original article
Hit count: 278
I am just beginning learning Quickly and PyGtk, after see this info-video on Ubuntu-develperment.
As in the video I am adding a toolbar to my glade-file, then some buttons.
To style the toolbar for ubuntu I do:
self.toolbar = self.builder.get_object("toolbar")
context = self.toolbar.get_style_context()
context.add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR)
The style works,
But the label-text-color for the buttons look like this:
How can I changes the text color?
© Ask Ubuntu or respective owner