Tk: Temporarily change cursor?

Fredrik Lundh fredrik at pythonware.com
Wed Jul 21 05:45:05 EDT 1999


Greg Ewing <greg.ewing at compaq.com> wrote:
> In an old news article I was referred to,
> Fredrik Lundh <fredrik at pythonware.com> wrote:
> 
> > if you change the cursor for a toplevel (or the root window),
> > that cursor will be used for all widgets that doesn't specify their own
> > cursors. 
> 
> I tried things like that, but they didn't work.
> Changing the root window's cursor doesn't affect
> any other toplevels, even if they don't define their
> own cursor. Also, when the pointer was over a subwidget
> of a toplevel, changing the toplevel's cursor and then
> doing an update didn't work reliably if the mouse
> buton was down at the time!

did you try the BusyManager class?  it's derived
from stuff we're using in commercial apps, and
seems to work just fine on all Tkinter platforms.

extending it to deal with multiple toplevels is
fairly trivial...

</F>





More information about the Python-list mailing list