Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Python - change_color_entry (See related posts)

// Cambia il colore di sfondo di una gtk.Entry, ma il discorso vale anche
// per la gtk.TextView...

import gtk

def change_color_entry(entry, color):
    entry.modify_base(gk.STATE_NORMAL, gtk.gdk.color_parse(color))

You need to create an account or log in to post comments to this site.


Click here to browse all 5059 code snippets

Related Posts