Hello,
I use pyGTK in a program with ToggleButton and Pixmap.
The problem I try top solve is changing the pixmap for the
two states of the button. Can it be done? (should be possible),
and someone provide me with working code?
The code I use now is (python-2.2, gtk-1.2):
button = gtk.GtkToggleBu tton()
button.connect( "clicked", do_my_thing)
button.show()
pix,mask = gtk.create_pixm ap_from_xpm(win dow,None,'nice. xpm')
pixmap = gtk.GtkPixmap(p ix,mask)
pixmap.show()
button.add(pixm ap)
Can someone tell me how to make it work?
Thanks,
Fulko
--
Fulko van Westrenen
fwes@lina.dto.t udelft.nl
Comment