Hi, Am Donnerstag, den 10.01.2008, 08:59 -0800 schrieb N. French: > I have a drawing area which I basically ripped from the scribble.py > example. Basically there's a pixmap, a configure event handler which > draws on the pixmap, and an expose event which uses draw_drawable() to > paint the pixmap onto the drawing area's window. Works fine. > > Now when I click some button I want to redo the whole drawing area > (it's changing the units of a grid that I'm drawing). Right now > nothing happens unless I then resize the window. What's the solution? > I tried a bunch of stuff... send_expose(), other ways of forcing events > (no success), and just calling draw_drawable() again (worked, but I > couldn't figure out the right coordinates from my drawing area so it > drew it in the wrong spot). I think I'm missing something here... help!
I always use .queue_draw(), works fine here. Greetings, Joachim -- Joachim "nomeata" Breitner mail: [EMAIL PROTECTED] | ICQ# 74513189 | GPG-Key: 4743206C JID: [EMAIL PROTECTED] | http://www.joachim-breitner.de/ Debian Developer: [EMAIL PROTECTED]
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
