Make a colour blink

Mark Lawrence breamoreboy at
Fri Oct 10 21:25:03 CEST 2014

On 10/10/2014 19:51, cruzud at wrote:
> Hello. I'm trying to make a colour blink when an event occurs.
> But the program is displaying only the last colour:
> self.bttn.bind('<ButtonRelease-Return>',blink)
> def blink(self, event=None):
>      lbl['background'] = 'red'
>      sleep(0.5)
>      lbl.['background'] = 'SystemButtonFace'
> Can you help?

Telling us what platform you're on, your OS, Python version and the 
actual GUI helps in cases like this.

My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

More information about the Python-list mailing list