[pygtk] Flashing widget background

Yann Leboulanger asterix at lagaule.org
Sun Nov 25 08:00:09 WST 2007


Peter Brooks wrote:
> Hi all,
> I'm looking to getting widgets in my program to flash, such as ardour
> does for it's record button.
> 
> Currently my thinking is to create a new thread to keep changing the
> background colour. However I'm trying to find out if there's already
> implementations of this out there.
> 
>  I've looked at ardour's but I am finding tracing how they do it
> taking quite a bit of time given their project maturity.

Wouldn't a gobject.timeout_add() be enough? That call a function every X
ms, in which you can change the color of your widget.

-- 
Yann


More information about the pygtk mailing list