如何更改Tkinter中的文本光标颜色? [英] How to change text cursor color in Tkinter?

查看:393
本文介绍了如何更改Tkinter中的文本光标颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个黑色背景的文本小部件,我看不到光标的位置。有没有办法改变(闪烁)文本光标的颜色?

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?

推荐答案

可以更改 insertbackground 选项的文本小部件到任何你想要的。

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

这篇关于如何更改Tkinter中的文本光标颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆