修改Python IDLE主题

如果感觉python idle自带的主题不好看,本文提供了从网上收集来的几个主题 。

教程开始:

  1. 在安装目录中找到“config-highlight.def”这个文件。(路径为 \Python37\Lib\idlelib\config-highlight.def)
  2. 用编辑器打开这个文件。
  3. 在文件末尾加入以下代码并保存。
  4. 打开IDLE,依次打开Options - Configure IDLE - Highlights,选中“a Built-in Theme”,点击右边第一个方框选择自己喜欢的主题。
[Obsidian]
definition-foreground = #ff8080
error-foreground = #FF0000
string-background = #494949
keyword-foreground = #e1031e
normal-foreground = #5ca404
comment-background = #293134
hit-foreground = #E0E2E4
builtin-background = #293134
stdout-foreground = #678CB1
cursor-foreground = #E0E2E4
break-background = #293134
comment-foreground = #5ae100
hilite-background = #2F393C
hilite-foreground = #E0E2E4
definition-background = #293134
stderr-background = #293134
hit-background = #000000
console-foreground = #E0E2E4
normal-background = #293134
builti
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值