当前位置:网站首页>The new content of the text component can be added through the tag_ Config set foreground and background colors
The new content of the text component can be added through the tag_ Config set foreground and background colors
2022-07-05 22:08:00 【Moxianzhe】
Text When adding content to a component , Can pass tag_config Set the foreground color for a specific string 、 Background color and other properties .
self.text1.tag_config('red',foreground = 'red',background = 'yellow') # Create tags in the message list partition ,ys2 style 2 The foreground color of the picture is red
self.text1.insert(END,str(msg) + '\n','red')
边栏推荐
- Countdown to 92 days, the strategy for the provincial preparation of the Blue Bridge Cup is coming~
- Summarize the reasons for 2XX, 3xx, 4xx, 5xx status codes
- EL与JSTL注意事项汇总
- Interview questions for famous enterprises: Coins represent a given value
- 阿龙的感悟
- 了解 Android Kotlin 中 DataStore 的基本概念以及为什么应该停止在 Android 中使用 SharedPreferences
- Meituan dynamic thread pool practice ideas, open source
- Granularity of blocking of concurrency control
- Microservice link risk analysis
- Win11缺少dll文件怎么办?Win11系统找不到dll文件修复方法
猜你喜欢
"Chris Richardson microservices series" uses API gateway to build microservices
MySQL服务莫名宕机的解决方案
The difference between MVVM and MVC
Overview of database recovery
The American Championship is about to start. Are you ready?
Promql demo service
Matlab draws a cute fat doll
ICMP 介绍
Huawei game multimedia service calls the method of shielding the voice of the specified player, and the error code 3010 is returned
Leetcode simple question: the minimum cost of buying candy at a discount
随机推荐
MySQL disconnection reports an error MySQL ldb_ exceptions. OperationalError 4031, The client was disconnected by the server
Lightweight dynamic monitorable thread pool based on configuration center - dynamictp
Deeply convinced plan X - network protocol basic DNS
Basic grammar of interview (Part 1)
Tips for using SecureCRT
Stored procedures and stored functions
华为云ModelArts文本分类–外卖评论
Summary of concurrency control
Implementing Lmax disruptor queue from scratch (IV) principle analysis of multithreaded producer multiproducersequencer
poj 3237 Tree(樹鏈拆分)
Performance testing of software testing
C language knowledge points link
极狐公司官方澄清声明
Hysbz 2243 staining (tree chain splitting)
等到产业互联网时代真正发展成熟,我们将会看待一系列的新产业巨头的出现
Leetcode simple question ring and rod
How to use tensorflow2 for cat and dog classification and recognition
Pl/sql basic syntax
Storage optimization of performance tuning methodology
Win11缺少dll文件怎么办?Win11系统找不到dll文件修复方法