python IDLE 背景修改 IDLE (Python GUI)

来源:互联网 发布:现在开淘宝店晚吗 编辑:程序博客网 时间:2024/05/22 01:40

1. 修改背景颜色

win7 路径C:\Users\Administrator\.idlerc新建文件config-Highlight.cfg

2. config-Highlight.cfg写入配置文件

[Obsidian]definition-foreground = #ff8080error-foreground = #FF0000string-background = #494949keyword-foreground = #e1031enormal-foreground = #5ca404comment-background = #293134hit-foreground = #E0E2E4builtin-background = #293134stdout-foreground = #678CB1cursor-foreground = #E0E2E4break-background = #293134comment-foreground = #5ae100hilite-background = #2F393Chilite-foreground = #E0E2E4definition-background = #293134stderr-background = #293134hit-background = #000000console-foreground = #E0E2E4normal-background = #293134builtin-foreground = #E0E2E4stdout-background = #293134console-background = #293134stderr-foreground = #FB0000keyword-background = #293134string-foreground = #EC7600break-foreground = #E0E2E4error-background = #293134[tango]definition-foreground = #ff0000error-foreground = #fa8072string-background = #2e3436keyword-foreground = #f8a80dnormal-foreground = #ffff00comment-background = #2f2f2fhit-foreground = #ffffffbreak-foreground = #000000builtin-background = #2e3436stdout-foreground = #eeeeeccursor-foreground = #fce94fhit-background = #2e3436comment-foreground = #73d216hilite-background = #edd400definition-background = #2e3436stderr-background = #2e3436break-background = #2e3436console-foreground = #87ceebnormal-background = #2e3436builtin-foreground = #ad7fa8stdout-background = #2e3436console-background = #2e3436stderr-foreground = #ff3e40keyword-background = #2e3436string-foreground = #e9b96ehilite-foreground = #2e3436error-background = #2e3436

3. 设置主题

重启python IDLEOptions > Configure IDLE >Settings > Highlighting > a Custom Theme Obsidian > tangoApply 预览效果

4. 主题自定义颜色

Apply 预览效果鼠标点击 def func(param)Foregroud 代码颜色Backgroud 背景颜色

参考:
1.如何修改python IDLE代码及语法主题 配色——拷贝的是别人喜欢的,来学会调试自己喜欢的颜色吧

原创粉丝点击