[pygtk] timer thread in python
Vermeersch Simon
simonvermeersch at gmail.com
Wed Dec 2 15:49:27 WST 2009
On Wed, Dec 2, 2009 at 12:43 AM, Okal Billy <b.okal at jacobs-university.de> 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
More information about the pygtk
mailing list