Python Forum
[Tkinter] Modifications on cursor
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Modifications on cursor
#1
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)
Reply
#2
Please post enough of a code snippet to run
Reply
#3
(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.
Reply
#4
add
racine.configure(background='red')
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Take the variable of a cursor class delcencen 2 1,149 Feb-13-2023, 05:19 AM
Last Post: deanhystad
  [Tkinter] Finding out what's under the cursor sabresong 3 2,629 Mar-28-2020, 02:52 PM
Last Post: sabresong
  [Tkinter] Problem of cursor force_tranquille 0 2,104 May-07-2018, 09:20 AM
Last Post: force_tranquille
  [Tkinter] Scroll at cursor position lollo 4 6,203 Jan-31-2018, 11:33 PM
Last Post: lollo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020