Christian Robottom Reis wrote:

On Thu, Apr 15, 2004 at 10:50:15AM -0400, William R. Dieter wrote:


~ self.im.set_from_pixmap(pm, None)



A question regarding this line (where self.im is a gtk.Image widget). If
the Image widget has a pixmap property which is read-write, is
set_from_pixmap() equivalent to setting the pixmap property, or is the
latter something else (or not really meant to be written to)?


They are the same except that setting the pixmap property reuses the existing mask.

Also, what's the difference between rendering on the Image using
set_from_pixmap() and drawing on the Image's underlying GdkWindow?


Drawing on the GdkWindow would be transient unless you handle the expose events and draw in the handler - GtkImage handles expose events. You could draw on the GtkImage's GdkPixmap if it uses a GdkPixmap.

John

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to