On Wed, 21 Mar 2001, Angelo Cano wrote:
> img.make_pixmap() returns a GtkPixmap and you need a GdkPixmap.
> You can get the GdkPixmap from the GtkPixmap:
>
> gtkpixmap = img.make_pixmap ()
faster to just use get_pixmap()
> gdkpixmap, mask = gtkpixmap.get ()
> style.bg_pixmap[STATE_NORMAL] = gdkpixmap
>
> The only problem is that pygtk (0.6.3) dumps core ;)
>
> ** ERROR **: file gtkmodule.c: line 512 (PyGtkStyleHelper_SetItem): should not be
>reached
> aborting...
> Aborted (core dumped)
That bit of code is broken in that version of pygtk. Grab the latest
gnome-python tarball from http://download.gnome.org/. If you don't want
to compile the gnome features, run configure, make and make install from
the pygtk directory of the tarball.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk