I forgot to update the docstring for that canvas item.  You should be able
to use GdkImlib.Image objects for the image argument now.  Right now there
is no reference counting for imlib images at the C level, so keep a python
reference to the imlib image for the duration of the canvas item (maybe
assign it to a data key with the set_data method).

I will fix the scrolled window problem with the testgtk demo.

James Henstridge

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Sun, 3 Jan 1999, A.M. Kuchling wrote:

> I'm working on an application where displaying an image inside a
> GnomeCanvas object is required.  The docstring for GnomeCanvasImage reads:
> 
>       """has arguments image (unfortunately a pointer type - not useable yet)
>       'x', 'y', 'width', 'height', 'anchor'"""
> 
> What's needed to support this?  Or is there an alternative way of
> displaying an image on a canvas?
> 
> Also, with the current CVS version of GTk+, the scrolled window demo
> in testgtk.py displays the following message:
>    Gtk-Message: gtk_scrolled_window_add(): cannot add non scrollable
>    widget use gtk_scrolled_window_add_with_viewport() instead   
> 
> The fix is to replace this:
>               scrolled_window.add(table)
> with this:
>               scrolled_window.add_with_viewport(table)
> 
> 
> -- 
> A.M. Kuchling                 http://starship.skyport.net/crew/amk/
> It is a fearful thing to be haunted by those who loved us once. It is a
> fearful thing to haunt those one loves.
>     -- Destruction orates about death (small 'd'), in SANDMAN #55: "Cerements"
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to