如何在 Python Tkinter 中获取当前光标类型、颜色和大小?

How to get the current cursor type, color and size in Python Tkinter?

有什么方法可以在 Python Tkinter 中获取当前光标类型?例如“芙蓉”?另外,有什么方法可以获取当前光标颜色和光标大小? 提前致谢:)

据我了解,是的:

注意:insertbackground设置光标的颜色。

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