How to make buttons different colours in Python GTK3 (using gi)?

前端 未结 3 820
盖世英雄少女心
盖世英雄少女心 2021-01-01 02:53

My latest head-scratcher is to build a silly little app in Python3 using GTK3, with colours other than fog-grey on the buttons. I have spent the last few days googling for h

3条回答
  •  心在旅途
    2021-01-01 02:59

    The preferred way in GTK3 is to use CSS for styling. Under Ubuntu 12.04 you may need to use background instead of background-color. But I don't know Python so I'll just give a link.

    https://thegnomejournal.wordpress.com/2011/03/15/styling-gtk-with-css/

提交回复
热议问题