Answers for "how to change style of focus cursor tkinter python"

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 "how to change style of focus cursor tkinter python"

Browse Popular Code Answers by Language