[pygtk] gtk.STATE_PRELIGHT

Sandro Dentella sandro at e-den.it
Fri Apr 28 02:31:03 WST 2006


Hi all,

  is there anythig wrong with this way of using PRELIGHT? I would imagine
  the label to change fg to RED when the mouse is over it... but I may have
  misunderstood the manual...

RED = gtk.gdk.color_parse('red')
BLU = gtk.gdk.color_parse('blue')

w = gtk.Window()
v = gtk.VBox()
E = gtk.EventBox()
l = gtk.Label("LABEL")

l.modify_fg(gtk.STATE_NORMAL, BLU)
l.modify_fg(gtk.STATE_PRELIGHT, RED)

w.add(v)
v.add(E)
E.add(l)
w.show_all()


TIA
*:-)


-- 
Sandro Dentella  *:-)
e-mail: sandro a e-den.it 
http://www.tksql.org                    TkSQL Home page - My GPL work


More information about the pygtk mailing list