[Tutor] pygame blinking text

2011-12-15 Thread Cranky Frankie
First of all let me thank Timo, Lie Ryan, and Ramit, for their constructive answers to my pygame/livewires blinking text question. I wasn't able to use any of their suggestions, but I finally figured out a method to get blinking text in a simple pygame program. What I realized was that since it l

Re: [Tutor] pygame blinking text

2011-12-12 Thread Prasad, Ramit
>This is a common problem when people start GUI/graphics programming; >once you enter the GUI mainloop, you're no longer in control of the >program flow. Instead the mainloop will process events and callbacks; >therefore if you want a blinking text, you had to arrange such that your >blinker fu

Re: [Tutor] pygame blinking text

2011-12-12 Thread Lie Ryan
On 12/13/2011 01:01 AM, Cranky Frankie wrote: I tried putting the ty_message block in a WHILE TRUE loop, and that didn't work. Then I tried the same with the games.screen.add(ty_message) line and that didn't work either. I think what might work is if I can find a way to delete the ty_message and

Re: [Tutor] pygame blinking text

2011-12-12 Thread Steven D'Aprano
Cranky Frankie wrote: [...] Is there any way to get blinking text with pygame? This is not a deal breaker, but I thought the blinking text would be neat. To punish your users for completing the game? Ha ha only serious. -- Steven ___ Tutor mail

Re: [Tutor] pygame blinking text

2011-12-12 Thread Timo
Op 12-12-11 15:01, Cranky Frankie schreef: My Python presentation is just about complete. As a nice ending I want to do a pygame program that displays the group's .jpg, with the words "Thank You!" blinking, say on for a second and off for a second. Unfortunatley, I can't get the works to blink, b

[Tutor] pygame blinking text

2011-12-12 Thread Cranky Frankie
My Python presentation is just about complete. As a nice ending I want to do a pygame program that displays the group's .jpg, with the words "Thank You!" blinking, say on for a second and off for a second. Unfortunatley, I can't get the works to blink, but I can get them to appear for a short time: