[pygtk] about GnomePixmapButton

vincy vincyshiu@sniic.com
Fri, 8 Feb 2002 11:30:52 +0800


     in the GnomePixmapButton API, according to ...../gnome/ui.py, we can 
pass a pixmap and a text to it and make a graphic button.... 

so i try this:
 file = pixmap_file('b.png')
 mybutton = GnomePixmapButton(GnomePixmap (file), "fdsafdsa")

this error come out:
Gdk-CRITICAL **: file gdkdraw.c: line 380 (gdk_draw_pixmap): assertion `src 
!= NULL' failed.

but i can see the button is on the window w/ a rubbish pixmap in there. 
what's wrong?? 

is the GnomePixmapButton can only use those stock pixmap but not the other 
pixmap we draw???

thanks a lot for any help!!!!!!!!!!!!!!!!!!!!!