[Tkinter-discuss] Changing the cursor for all widgets

Guilherme Polo ggpolo at gmail.com
Thu Feb 26 22:44:19 CET 2009

On Thu, Feb 26, 2009 at 6:10 PM, Bob Greschke <bob at passcal.nmt.edu> wrote:
> If I have a Toplevel (or Root) window with a canvas on it it looks like
> changing the cursor for the window, to a wristwatch for example, also
> changes the cursor for the canvas, but if the window has a Text widget on it
> the cursor when mousing over the edge of the window changes to the
> wristwatch, but over the Text field it turns back into an insertion cursor
> (I-beam).  Is there a way to get the Text()s to change along with everyone
> else, or do I just have to configure them separately?

Child widgets of this toplevel will only use the toplevel's cursor if
they don't have a cursor defined for themselves.

If you check the cursor defined in your text widget by doing "print
textwidget['cursor']" you will see there is already a cursor defined
for it, so you can either create this textwidget with cursor='' or set
it to '' after creating.

> Thanks!
> Bob

-- Guilherme H. Polo Goncalves

More information about the Tkinter-discuss mailing list