Re: [pygtk] Drawing in Drawing Area
On Fri, 18 Oct 2002, LDC - Pablo Endres Lozada wrote: I've tryed to draw in a Drawing Area but the only way that it works is suscribing the paint method to the expose-event. Is there anothere way to do this?? Can I paint at any time or must it be via signals? You should only paint in response to an expose signal. Before the expose signal, the window is not required to be realized. Most applications generally handle drawing in a GtkDrawingArea by having an offscreen pixmap which is the same size as the window to be painted. The offscreen pixmap gets programmatically redrawn in response to a configure event or user event. Then, the pixmap gets blitted to screen in response to an expose event (X generated or synthetically generated with queue_draw()). Hope this helps. -a ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] Drawing in Drawing Area
LDC - Pablo Endres Lozada wrote: I've tryed to draw in a Drawing Area but the only way that it works is suscribing the paint method to the expose-event. Is there anothere way to do this?? Can I paint at any time or must it be via signals? It is best to only draw in response to an expose event. If you want to redraw your widget, you should call the queue_draw() or queue_draw_area() methods, which will queue an exposure for you. James. -- Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/ WWW: http://www.daa.com.au/~james/ | Jan 22-25 Perth, Western Australia. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Drawing in Drawing Area
I've tryed to draw in a Drawing Area but the only way that it works is suscribing the paint method to the expose-event. Is there anothere way to do this?? Can I paint at any time or must it be via signals? -- Muchas personas creen que piensan, cuando en realidad sólo están reordenando sus prejuicios. - William James .-. / .-. Pablo Endres Lozada.-. \ | / \ Laboratorio Docente de Computacion / \ | | |\_. |USB - Venezuela |/| | |\| | /| |\ | |/| | `---' | [EMAIL PROTECTED] | `---' | | | | | | |-| | \ | | / \ / \ / `---' `---' ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/