马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 我真的是个好人 于 2020-7-19 22:04 编辑
如果打算打汉化补丁请先跳到结尾打完再来美化主题!!!
今天闲着没事干回顾一下IDLE,感觉那不是一般的丑啊
于是在网上找了下美化方法(其实也没啥用)小声bb
首先来做准备工作
这里提供四份主题![blackboard]
keyword-background = #0C1021
definition-foreground = #D63A1B
error-foreground = #ff0000
string-background = #0C1021
keyword-foreground = #FBDE2D
hilite-foreground = #000000
comment-background = #0C1021
hit-foreground = #ffffff
builtin-background = #0C1021
stdout-foreground = #eeeeee
cursor-foreground = #ffcc00
break-background = #ffff55
comment-foreground = #505050
hilite-background = gray
definition-background = #0C1021
stderr-background = #0C1021
hit-background = #0C1021
console-foreground = #87ceeb
normal-background = #0C1021
builtin-foreground = #fd9902
stdout-background = #0C1021
console-background = #0C1021
stderr-foreground = #ff3e40
normal-foreground = #F8F8F8
string-foreground = #61CE3C
break-foreground = black
error-background = #000000
[twilight]
keyword-background = #141414
definition-foreground = #c86428
error-foreground = #ff0000
string-background = #141414
keyword-foreground = #c2964b
hilite-foreground = #00ffff
comment-background = #141414
hit-foreground = #ffffff
builtin-background = #141414
stdout-foreground = #eeeeee
cursor-foreground = #ffcc00
break-background = #ffff55
comment-foreground = #524d53
hilite-background = #0000a0
definition-background = #141414
stderr-background = #141414
hit-background = #141414
console-foreground = #87ceeb
normal-background = #141414
builtin-foreground = #ce3e24
stdout-background = #141414
console-background = #141414
stderr-foreground = #ff3e40
normal-foreground = #FFFFFF
string-foreground = #61CE3C
break-foreground = black
error-background = #000000
[desert]
keyword-background = #333333
definition-foreground = #98fb98
error-foreground = #ff0000
string-background = #333333
keyword-foreground = #cc6600
hilite-foreground = #000000
comment-background = #333333
hit-foreground = #ffffff
builtin-background = #333333
stdout-foreground = #eeeeee
cursor-foreground = #ffcc00
break-background = #ffff55
comment-foreground = #87ceeb
hilite-background = gray
definition-background = #333333
stderr-background = #333333
hit-background = #333333
console-foreground = #87ceeb
normal-background = #333333
builtin-foreground = #519e51
stdout-background = #333333
console-background = #333333
stderr-foreground = #ff3e40
normal-foreground = #f0e68c
string-foreground = #ffa0a0
break-foreground = black
error-background = #000000
[cobalt]
keyword-background = #001B33
definition-foreground = #FFDD11
error-foreground = #ff0000
string-background = #001B33
keyword-foreground = #FF7222
hilite-foreground = #00ffff
comment-background = #001B33
hit-foreground = #ffffff
builtin-background = #001B33
stdout-foreground = #eeeeee
cursor-foreground = #ffcc00
break-background = #ffff55
comment-foreground = #007699
hilite-background = #0000a0
definition-background = #001B33
stderr-background = #001B33
hit-background = #001B33
console-foreground = #87ceeb
normal-background = #001B33
builtin-foreground = #D40E36
stdout-background = #001B33
console-background = #001B33
stderr-foreground = #ff3e40
normal-foreground = #F8F8F8
string-foreground = #61CE3C
break-foreground = black
error-background = #000000
我用的是[twilight],很好看,喜欢其它的也是一样的安装方式(反正我全装了)
开始安装主题啦!!!
1.copy下你喜欢的主题
2.找到你python的安装目录(Anaconda3可以走了)
3.在python安装目录找到Lib\idlelib\config-highlight.def文件
4.双击用记事本打开文件
5.在文件结尾回车两下,粘贴复制下来的代码,注意粘贴上去的代码与源代码之间要空一行
好啦,最后保存文件,重启IDLE,就可以在主题界面找到啦!
由于我用的是打了汉化补丁的IDLE这里就不截图了,怎么进主题设置就蹲个大佬吧
进入主题设置方法:
IDLE菜单栏选择Options -> Configure IDLE -> Highlights
图中twilight按钮(不一定是这个名字,这是设置的主题名,但是按钮位置绝对不会错)选择自己安装的主题的名字就行啦
汉化补丁!!!
idlelib.zip
(662.43 KB, 下载次数: 52, 售价: 3 鱼币)
圈一波钱哈哈哈
下载后打开刚才找到的Lib文件夹,把压缩包内的idlelib粘贴进去,点击替换,汉化补丁就装完啦!
Lib文件夹就是之前找idlelib途中找到的那个,之所以叫先装补丁是因为需要替换掉整个idlelib文件夹!
放一张我全部搞完的效果图
还是丑丑的哈哈哈
因为IDLE本身比较简单,不能像pycharm那样设置图片背景图,只能纯色了
上传效果图有评分奖励!!!
|