[Tkinter-discuss] Changing the cursor for all widgets
bob at passcal.nmt.edu
Fri Feb 27 00:03:43 CET 2009
OOoooOOooo! That's just right for these Text()s since they are not
really for editing, but just for displaying stuff. I didn't know
about the cursor='' trick. Perfect! Thanks!
On Feb 26, 2009, at 14:44, Guilherme Polo wrote:
> On Thu, Feb 26, 2009 at 6:10 PM, Bob Greschke <bob at passcal.nmt.edu>
>> If I have a Toplevel (or Root) window with a canvas on it it looks
>> 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
>> (I-beam). Is there a way to get the Text()s to change along with
>> 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.
> -- Guilherme H. Polo Goncalves
More information about the Tkinter-discuss