Jay Bloodworth wrote:
> 
> I'm using pygtk 0.6.6  and gtk+ 1.2.8 (from Helixcode).
> 
> I need to be able to render a depiction of a widget to a pixmap so I can
> use it as the icon for a drag operation.  It appears that I could use
> gdk_image_get or perhaps gdk_window_copy to do this if I were using the
> c interface.  However, these functions do not appear to be available
> either through the ptk.py OO interface or even the _gtk c-like
> interface.

Well, the easiest solution to your problem is to use the
drag_set_icon_widget() method, which takes a widget, rather than a
pixmap/mask combo.

> 
> Any help on this would be appreciated.  Additionally, my search for a
> solution to this problem has suggested several other questions:
> 
> 1) What is gtkmodule?  I have gtkmodule.so in my site-packages dir, but
> if I attempt to import _gtkmodule I get 'ImportError: dynamic module
> does not define init function (init_gtkmodule)'

There shouldn't be a gtkmodule.so.  If there is, then it is probably
old.

> 
> 2) drag_unset_source is not wrapped in gtk.py, though it is available
> through _gtk.  Any particular reason?

looks like a bug.  I will fix that.

James.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to