[Tkinter-discuss] Main loop / Scheduling

Alec Solway asolway at seas.upenn.edu
Thu Apr 10 20:51:17 CEST 2008


If so, then why does the following work? What actually calls bar() below?

foo = Tk()
def bar():
     print "bar"
foo.after(1000, bar)
# Drop back to prompt with 'after#0' response
<1000ms>
bar

Quoting Fredrik Lundh <fredrik at pythonware.com>:

> Alec Solway wrote:
>
>> (1) Is this an inherit problem with how things in general are set up?
>> Is everything running under a single thread?
>
> yes.
>
> </F>
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>




More information about the Tkinter-discuss mailing list