Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to change the mouse cursor?

14 views
Skip to first unread message

Oliver 'ojo' Bedford

unread,
Nov 6, 2009, 6:34:55 AM11/6/09
to
Hi!

I'm doing something timeconsuming in a Tk callback. To communicate this
to the user I would like to change the mouse cursor.

If I use something like $mw->configure(-cursor => 'foo'); in the callback
the mouse cursor get's changed _after_ the callback is finished. Which is
understandable if you think about it, but clearly is not what I intended.

So how is it done?

Oliver

Steve C

unread,
Nov 6, 2009, 9:28:43 AM11/6/09
to

Use the Busy call, which is available for all widgets.
$mw->Busy(-cursor => 'watch');

0 new messages