如何在tkinter中突出显示文字?你知道我做错了什么吗? [英] how to highlight text in tkinter? , do you know what i am doing wrong ?

查看:405
本文介绍了如何在tkinter中突出显示文字?你知道我做错了什么吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我在tkinter文本小部件中有文字,我如何突出显示特定字母?

hi i have text in a tkinter text widget, how would i highlight specific letters?

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号

推荐答案

你告诉Tkinter插入文本s在末尾。以下将突出显示一系列字符:
You are telling Tkinter to insert text "s" at the end. The following will highlight a sequence of characters:
展开 | 选择 | Wrap | 行号


是否有任何关于使用标签和做高亮表的教程或文档蟒蛇3?


i试过这个,但它没有工作
is there any tutorial, or documentation on using tags and doing highlights in python 3 ?

i have tried this but its not working
展开 | 选择 | Wrap < span class =codeDivider> | 行号


as im trying to突出显示空白,是否在for循环中突出显示,例如for "在ttk.Text中,以黄色突出显示??
as im trying to highlight white spaces, is there away of highlighting in a for loop, for example for " " in ttk.Text, highlight in yellow ??


这篇关于如何在tkinter中突出显示文字?你知道我做错了什么吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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