You can change the insertbackground
option of the text widget to whatever you want.
How to change text cursor color in Tkinter?
-
15-01-2022 - |
Frage
I have a text widget with dark background and I can't see the cursor's position. Is there any way to change the (blinking) text cursor's color?
Lösung
Andere Tipps
Option for text cursor color in Tk is -insertbackground
.
textWidget.config(insertbackground=...)
For python version 3
import tkinter as tk
textfield = tk.Entry(root)
textfield.configure(bg="#1C6C0B", insertbackground='white')
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow