[pygtk] How to prevent user-interaction with the UI?

Timo timomlists at gmail.com
Tue Aug 14 16:58:32 WST 2012


Op 14-08-12 06:35, Ajay Garg schreef:
> Hi all.
>
> I have four simple questions :)   ::
>
>
> a)
> How to block the complete UI (in the sense that no user-interaction 
> with the UI is effective), although the UI changes take place as usual 
> via the changes emanating from the code?
>
>
> b)
> How to block only a widget, while the rest of the UI remains unblocked?
>
>
> c)
> How to unblock only a widget, while the rest of the UI remains blocked?
>
>
> d)
> How to unblock the complete UI?
>

Do you mean gtk.Widget.set_sensitive(True|False) ? You can use it on 
your toplevel window to disable the whole application or on individual 
widgets.

Cheers,
Timo

>
> Will be grateful for a reply.
>
>
> Thanks and Regards,
> Ajay
>
>
>
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/



More information about the pygtk mailing list