DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Python - Change_color_entry

  • submit to reddit
        // 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))