Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78967

Re: Make a colour blink

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Make a colour blink
Date 2014-10-10 20:25 +0100
References <4b06699a-8852-4389-8a46-f0d2659322e1@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.14764.1412969124.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 10/10/2014 19:51, cruzud@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('<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

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Make a colour blink cruzud@gmail.com - 2014-10-10 11:51 -0700
  Re: Make a colour blink MRAB <python@mrabarnett.plus.com> - 2014-10-10 20:24 +0100
  Re: Make a colour blink Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-10 20:25 +0100
    Re: Make a colour blink Ulisses <cruzud@gmail.com> - 2014-10-10 12:45 -0700

csiph-web