当前位置:网站首页>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')
边栏推荐
- Index optimization of performance tuning methodology
- Web3为互联网带来了哪些改变?
- The statistics of leetcode simple question is the public string that has appeared once
- Business learning of mall order module
- The real situation of programmers
- Getting started with microservices (resttemplate, Eureka, Nacos, feign, gateway)
- Summarize the reasons for 2XX, 3xx, 4xx, 5xx status codes
- 数据泄露怎么办?'华生·K'7招消灭安全威胁
- Huawei game multimedia service calls the method of shielding the voice of the specified player, and the error code 3010 is returned
- Oracle checkpoint queue - Analysis of the principle of instance crash recovery
猜你喜欢
A trip to Suzhou during the Dragon Boat Festival holiday
Meituan dynamic thread pool practice ideas, open source
Huawei cloud modelarts text classification - takeout comments
EBS Oracle 11g cloning steps (single node)
MySQL服务莫名宕机的解决方案
Web3为互联网带来了哪些改变?
Business learning of mall order module
database mirroring
Cobaltstrike builds an intranet tunnel
Oracle hint understanding
随机推荐
Dbeaver executes multiple insert into error processing at the same time
Regular expressions and re Libraries
K210 learning notes (IV) k210 runs multiple models at the same time
ICMP 介绍
Performance testing of software testing
【愚公系列】2022年7月 Go教学课程 004-Go代码注释
What about data leakage? " Watson k'7 moves to eliminate security threats
The statistics of leetcode simple question is the public string that has appeared once
装饰器学习01
Huawei game multimedia service calls the method of shielding the voice of the specified player, and the error code 3010 is returned
Multiplexing of Oracle control files
Pl/sql basic case
微服務鏈路風險分析
Web3为互联网带来了哪些改变?
Did you brush the real title of the blue bridge cup over the years? Come here and teach you to counter attack!
2022-07-05: given an array, you want to query the maximum value in any range at any time. If it is only established according to the initial array and has not been modified in the future, the RMQ meth
Shell script, awk uses if, for process control
POJ 3237 tree (tree chain splitting)
Promql demo service
Storage optimization of performance tuning methodology