Tkinter and after

Stephane Conversy conversy at lri.fr
Fri Nov 12 16:29:54 CET 1999


excuse #1:
    someone has stolen my email adress, I did not write this one !
    nobody to believe me ?

excuse #2:

http://www.pythonware.com/library/tkinter/introduction/x8550-alarm-handlers-and-other.htm

    is not rendered by netscape the way it should, I missed the big 'after'
and took the little after that said tk blocks.
    you believe me now, do you ?

not a excuse #3:
    I apologize, I should read and test carefully.


Fredrik Lundh wrote:

> Fred L. Drake, Jr. <fdrake at acm.org> wrote:
> >  > It is said in Tkinter doc that after() is like a call to time.sleep()
> >  > wich blocks Tkinter.
> >
> >   I'm not sure what docs you're referring to (presumably the
> > eff-bot's), but after() does not block Tk.
>
> what version are you using?  if you
> run this script, can you move the
> scale widget after you've clicked
> the button?
>
> from Tkinter import *
>
> root = Tk()
>
> Scale(root).pack()
>
> Button(root, text="click me!",
>        command=lambda: root.after(100000)
>        ).pack()
>
> mainloop()
>
> </F>

--
Stéphane Conversy
http://www-ihm.lri.fr/~conversy/
mailto:conversy at lri.fr







More information about the Python-list mailing list