[pygtk] How to prevent a widget updating

Chris Rouch crouch at pobox.com
Fri Oct 1 19:33:18 WST 2004


I have a table containing buttons containing boxes containing icons
and or labels.

I want to change many of these boxes at once (e.g. replacing the icons
with labels of vice versa). I do this by removing the children and
creating new ones. I don't want to see the changes until they are all
complete.

So, is there a way to prevent the boxes updating until I tell them to?
And if there is, how do I tell them to update once I'm ready?

I had hoped that 

box.freeze_notify()

would do the trick, but it doesn't :-(

I've attached a small example that shows what happens. When the timer
is run after 5 seconds, the display is updated immediately. I'd like
the display to remain unchanged until I tell it to.

Thanks and regards,

Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tabtest.py
Type: application/octet-stream
Size: 923 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20041001/65ef07b9/tabtest.obj


More information about the pygtk mailing list