Python Forum

Full Version: Modifications on cursor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I would like to modify the size and the color of the cursor in my root window in Tkinter.

After a few research, I tried this:
racine=tkinter.Tk()
racine.configure(cursor='circle red3') #Change l'apparence du curseur
This code change the look of the cursor into a circle, but it's still in "white and black".

Could you help me please? Thank you.

(I precise that I use the latest python's version)
Please post enough of a code snippet to run
(Jun-04-2018, 04:09 PM)Larz60+ Wrote: [ -> ]Please post enough of a code snippet to run

Indeed, I have forgotten the mainloop, so there is the all code:

racine=tkinter.Tk()
racine.configure(cursor='circle red3')

racine.mainloop()
So, it is possible to the change the color of the cursor? This piece of code I found don't works for me.
add
racine.configure(background='red')