The example Scribble program in the PyGTK tutorial shows how to get and handle events for a drawingarea as well as how to setup a backing pixmap for handling the expose events:

http://www.moeraki.com/pygtktutorial/ch-scribble.html

John

LDC - Pablo Endres Lozada wrote:


Ok here is how I'm doing the painting:

self.pixmacOK, mask = gtk.create_pixmap_from_xpm(self.Main, self.style.bg[gtk.STATE_NORMAL], self.macOK)

area.draw_pixmap(self.gc, self.pixmacOK, 0, 0, x1, y,
self.pixmacOK.width, self.pixmacOK.height)

How do I setup the event handler to a simple pixmap or even
easyer how to a draw a gtk.Pixmap on the Drawing area?


_______________________________________________
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