[pygtk] Preventing Window Refresh

Damien Moore damienlmoore at gmail.com
Sat Jul 4 08:57:16 WST 2009

Unfortunately, wrapping the sequence with window hide/show doesn't help.

I spent a little time tracing my code. After my sequence of calls:

def clicked_signal(self,button_widget):

the following happens

1. the requested widgets get hidden,
2. a configure event gets sent telling my widgets to use the full extent of
the window
3. the window goes full screen
4. another configure event occurs telling my widgets to use the full screen.

This sequence seems to happen irrespective of what order I make the
hide/fullscreen calls (i.e. if I make the fullscreen call first, the hide
events seem to occur before the fullscreen event)

I need some mechanism to prevent the first configure (at step 2) from
happening or ignoring it because it looks really ugly....

On Fri, Jul 3, 2009 at 11:06 AM, Alessandro Dentella <sandro at e-den.it>wrote:

> > This works but looks terrible as the window seems to refresh after each
> widget
> > gets hidden. what I want to know is if there is a way to block
> recalculation
> > and refresh of the window during each of these intermediate steps? e.g.
> > something like:
> What if you do:
>  window.hide()
>  hbox1.hide()
>  hbox2.hide()
>  ...
>  hboxn.hide()
>  window.fullsize()
>  window.show()
> would it be better or worse?
> *:-)
> --
> Sandro Dentella  *:-)
> http://sqlkit.argolinux.org        SQLkit home page -
> PyGTK/python/sqlalchemy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090703/89de8f7b/attachment.htm 

More information about the pygtk mailing list