On Wed, Dec 2, 2009 at 12:43 AM, Okal Billy <[email protected]> wrote:
> Hey all
>
> I am creating an application in which I need to blacken the window
> display if no interaction with button happens for 5 seconds, right now I
> am doing this using some python thread, but it seems not to work, it
> just does not blacken out. Does someone have an idea or even some sample
> code that has something of this sort?
>
> Regards,
> Billy
>
I would look into using gobject.timeout_add instead of a thread for this.
Take a look at 
http://www.pygtk.org/pygtk2reference/gobject-functions.html#function-gobject--timeout-add

-- 
Simon Vermeersch
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to