Try to search your question here, if you can't find : Ask Any Question Now ?

GTK: create a colored regular button

HomeCategory: stackoverflowGTK: create a colored regular button
Avatarbhawya asked 5 months ago

How do I do it? A lot of sites say I can just call .modify_bg() on the button, but that doesn’t do anything. I’m able to add an EventBox to the button, and add a label to that, and then change its colors, but it looks horrendous – there is a ton of gray space between the edge of the button that doesn’t change. I just want something that looks like this:


The site claims to have just done modify_bg() on the button. But that doesn’t work for me. =(.

The right answer probably involves creating a style, or something with a gtkrc file, etc. Can someone point me in that direction?

1 Answers
Best Answer
AvatarJyoti answered 5 months ago
Your Answer

16 + 8 =

Popular Tags

WP Facebook Auto Publish Powered By :