当前位置:网站首页>Text组件新增内容通过tag_config设置前景色、背景色
Text组件新增内容通过tag_config设置前景色、背景色
2022-07-05 22:05:00 【Moxianzhe】
Text组件新增内容时,可以通过tag_config给特定的字符串设定前景色、背景色等属性。
self.text1.tag_config('red',foreground = 'red',background = 'yellow') #消息列表分区中创建标签,ys2样式2的前景色为red
self.text1.insert(END,str(msg) + '\n','red')
边栏推荐
- Huawei fast game failed to call the login interface, and returned error code -1
- Oracle checkpoint queue - Analysis of the principle of instance crash recovery
- 资深电感厂家告诉你电感什么情况会有噪音电感噪音是比较常见的一种电感故障情况,如果使用的电感出现了噪音大家也不用着急,只需要准确查找分析出什么何原因,其实还是有具体的方法来解决的。作为一家拥有18年品牌
- Learning of mall permission module
- An exception occurred in Huawei game multimedia calling the room switching method internal system error Reason:90000017
- PIP install beatifulsoup4 installation failed
- Poj 3237 Tree (Tree Chain Split)
- Talking about MySQL index
- Business learning of mall order module
- Granularity of blocking of concurrency control
猜你喜欢
Bitbucket installation configuration
"Chris Richardson microservices series" uses API gateway to build microservices
每日刷题记录 (十四)
How to use tensorflow2 for cat and dog classification and recognition
Ad637 notes d'utilisation
K210学习笔记(四) K210同时运行多个模型
MMAP learning
The Blue Bridge Cup web application development simulation competition is open for the first time! Contestants fast forward!
【愚公系列】2022年7月 Go教学课程 003-IDE的安装和基本使用
Shell script, awk uses if, for process control
随机推荐
The solution to the problem that Oracle hugepages are not used, causing the server to be too laggy
如何开发引入小程序插件
poj 3237 Tree(树链拆分)
Cross end solutions to improve development efficiency
Huawei cloud modelarts text classification - takeout comments
SecureCRT使用提示
Alternating merging strings of leetcode simple questions
Dbeaver executes multiple insert into error processing at the same time
PyGame practical project: write Snake games with 300 lines of code
从零开始实现lmax-Disruptor队列(四)多线程生产者MultiProducerSequencer原理解析
Poj 3237 Tree (Tree Chain Split)
HDU 4391 Paint The Wall 段树(水
Implementing Lmax disruptor queue from scratch (IV) principle analysis of multithreaded producer multiproducersequencer
Official clarification statement of Jihu company
Basic grammar of interview (Part 1)
元宇宙中的三大“派系”
POJ 3237 tree (tree chain splitting)
Livelocks and deadlocks of concurrency control
Storage optimization of performance tuning methodology
Tips for using SecureCRT