Re: Make a colour blink

2014-10-10 Thread Ulisses
> 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 Hello again. I forgot to tell yo

Re: Make a colour blink

2014-10-10 Thread Mark Lawrence
On 10/10/2014 19:51, cru...@gmail.com 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('',blink) def blink(self, event=None): lbl['background'] = 'red' sleep(0.5) lbl.['background'] = 'SystemB

Re: Make a colour blink

2014-10-10 Thread MRAB
On 2014-10-10 19:51, cru...@gmail.com 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('',blink) def blink(self, event=None): lbl['background'] = 'red' sleep(0.5) lbl.['background'] = 'SystemB