Hey Kristian, thanks for the reply
The problem to use sleep is that all widgets gets locked up and they doesn't refresh themselves
I just made that example so anyone can explain the code Kent posted earlier
In my real application is a Tkinter GUI so I should not use sleep
Thanks anyway
Regards
Alberto
>From: Kristian Zoerhoff <[EMAIL PROTECTED]> >Reply-To: Kristian Zoerhoff <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED], tutor@python.org >Subject: Re: [Tutor] str.split and quotes >Date: Mon, 11 Apr 2005 11:03:13 -0500 > >On Apr 11, 2005 11:00 AM, Alberto Troiano <[EMAIL PROTECTED]> wrote: > > > > To give you a graphic example how can make this function to run every 5 > > seconds > > > > def foo(): > > > > print "Hello world!" > > > >I'm not Kent, but I play him on TV ;-) > >import time > >def foo(): > print "Hello world!" > >while true: > foo() > time.sleep(5) > >-- >Kristian > >kristian.zoerhoff(AT)gmail.com >zoerhoff(AT)freeshell.org_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor