Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #current #cursor #type #color #Tkinter #Python
ADD COMMENT
Topic
Name
2+6 =