[Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

Alexnb alexnbryan at gmail.com
Sun Jul 13 21:34:03 CEST 2008




Cameron Laird-2 wrote:
> 
> On Sun, Jul 13, 2008 at 12:23:29PM -0700, Alexnb wrote:
>> > 			.
>> > 			.
>> > 			.
>> > Alex, I'm lost as to what your current status is--what
>> > you see as solved, and what questions still remain.
>> > Do you see why the fragment above is unlikely to make
>> > you happy?  after()'s second argument names a function;,
>> > it doesn't expect the coder to invoke it.  Does the 
>> > self-scheduling in <URL:
>> > http://tkinter.unpythonic.net/wiki/after > make sense?
>> > How did it not serve you better to write
>> > 
>> >      root.after(100000000, sleeper)
> 			.
> 			.
> 			.
>> Well Thats what I said, only, it didn't help. It was for a busy bar and
>> the
>> bar would stop unless I was using the for loop with the time.sleep() in
>> it.
>> However, it would always stop at the same spot with after(), but when I
>> used
>> after(100, sleeper()) vs after(100, sleeper) the sleeper() would still
>> stop,
>> but it would go a little further down the bar track. If that makes sense.
>> But I have given up on the idea for now, but thanks for your attempt to
>> help!
> 			.
> 			.
> 			.
> When you write that you "have given up ...", does that
> mean that a working busybar would not be a value to you
> now?
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
> 
> 

NoNo, a working bar would be of value, but not this one. This one probably
wasn't written that well, so I am going to try and write one myself. But a
working one would serve me well. Just not this one. If you know of a good
way to write one, or an easy way, or one that works, I'd love to know.

-- 
View this message in context: http://www.nabble.com/Stopping-a-for-loop-with-a-sleep%28%29-funciton-in-it-tp18391735p18432929.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.



More information about the Tkinter-discuss mailing list