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

Ajay Garg ajaygargnsit at gmail.com
Tue Aug 14 18:21:26 WST 2012


Thanks Timo.

It worked !!!


Just one last query ::

When I desensitize the root window, the entire window goes "grayed".
Is there a way, so that we can prevent the graying out? Ideally, I would
like no colour change.


Thanks and Regards,
Ajay


On Tue, Aug 14, 2012 at 2:28 PM, Timo <timomlists at gmail.com> wrote:

> 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<http://www.daa.com.au/mailman/listinfo/pygtk>
>> Read the PyGTK FAQ: http://faq.pygtk.org/
>>
>
> ______________________________**_________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/**listinfo/pygtk<http://www.daa.com.au/mailman/listinfo/pygtk>
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20120814/dd823988/attachment.html>


More information about the pygtk mailing list