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!
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/