How to change text cursor color in Tkinter? How to change text cursor color in Tkinter? tkinter tkinter

How to change text cursor color in Tkinter?


You can change the insertbackground option of the text widget to whatever you want.


Option for text cursor color in Tk is -insertbackground.

textWidget.config(insertbackground=...)


For python version 3

import tkinter as tktextfield = tk.Entry(root)textfield.configure(bg="#1C6C0B", insertbackground='white')