diff options
Diffstat (limited to 'Char.py')
-rw-r--r-- | Char.py | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -20,7 +20,7 @@ class Char: id = 0 pixbuf = None #gtk.gdk.Pixbuf() -def list(): +def themes(): return [Char()] @@ -105,5 +105,19 @@ def list(): entrypath = os.path.join(TMPDIR,entry) os.remove(entrypath) +def prepare_btn(btn, w=-1, h=-1): + for state, color in COLOR_BG_BUTTONS: + btn.modify_bg(state, gtk.gdk.color_parse(color)) + c = btn.get_child() + if c is not None: + for state, color in COLOR_FG_BUTTONS: + c.modify_fg(state, gtk.gdk.color_parse(color)) + else: + for state, color in COLOR_FG_BUTTONS: + btn.modify_fg(state, gtk.gdk.color_parse(color)) + if w>0 or h>0: + btn.set_size_request(w, h) + return btn + """ |