Answers for "change cursor color tkinter"

2

how to change the color of the cursor in tkinter

tkinter.Text(tk.Tk(), insertbackground="#3C3F41")
Posted by: Guest on July-31-2020
2

Get current cursor type and color Tkinter Python

from tkinter import *
from tkinter import ttk
root=Tk()
entry1=Entry(root,cursor="fleur",insertbackground="red")
entry1.pack()
Button(root,text="Get cursor type and colour", command=lambda: print(entry1['cursor'],entry1['insertbackground'])).pack()
root.mainloop()
Posted by: Guest on July-24-2021

Code answers related to "change cursor color tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language