[Tkinter-discuss] Pointer busy

Batista, Facundo FBatista at uniFON.com.ar
Wed Jun 9 14:39:42 EDT 2004


Have a simple GUI.

One text entry, two buttons. When you press each button, something is done
with the text you entered and it takes about 10 seconds.

You can click on any button. But when you click on it, I want the mouse
pointer to show the sand clock. So I put this code:

    root.config(cursor="wait")
    textoOut = funcion(textoIn)
    root.config(cursor="")

This does NOT work, but if I put this:

    root.config(cursor="wait")
    print "starting..."
    textoOut = funcion(textoIn)
    print "ending..."
    root.config(cursor="")

Works OK!

Do you know why? I need some kind of flush?

I'm on Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)]
on win32.

Thank you!

Facundo Batista
Desarrollo de Red
fbatista at unifon.com.ar
(54 11) 5130-4643
Cel: 15 5132 0132





More information about the Tkinter-discuss mailing list