hi, 

     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!!!!!!!!!!!!!!!!!!!!!
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to