问题
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?
回答1:
You can change the insertbackground
option of the text widget to whatever you want.
回答2:
Option for text cursor color in Tk is -insertbackground
.
textWidget.config(insertbackground=...)
来源:https://stackoverflow.com/questions/14284492/how-to-change-text-cursor-color-in-tkinter