How to change text cursor color in Tkinter?

前端 未结 3 1726
臣服心动
臣服心动 2021-02-12 12:21

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?

3条回答
  •  花落未央
    2021-02-12 13:07

    Option for text cursor color in Tk is -insertbackground.

    textWidget.config(insertbackground=...)
    

提交回复
热议问题