python - GtkTextView : How to change background color of current active blinking cursor line?

标签 python gtk pygtk

根据闪烁光标的位置,我希望当前事件行具有不同的背景颜色,以清楚地表明我当前正在编辑哪一行。我怎样才能做到这一点?

最佳答案

使用 GtkSourceView 而不是 GtkTextView 并设置 highlight-current-line属性。

关于python - GtkTextView : How to change background color of current active blinking cursor line?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12544471/

相关文章:

c - 如何在 GTK 中获取按钮的文本?

python - PNG 图像的 GTK Python 透明背景

ubuntu - 在 Ubuntu 上,如何通过 apt-get 安装 pygtk for python 2.7?

python - 如何连贯地组织 PyGTK 桌面应用程序的模块?

python - 如何使用 API 和 python 将图像添加到现有的 facebook 帖子?

python - Flask SQLAlchemy 从查询结果中的两个连接的映射实体获取列

c - 如何从文本文件填充组合框 - GTK - C

python - 从系列中删除零的最快方法是什么

python - sqlite3.操作错误

python - 我怎样才能在我的应用程序中制作小的股票图标?