李旭分享 http://blog.sciencenet.cn/u/lixujeremy 代码与散打爱好者!

博文

Python Shell Background Color

已有 2942 次阅读 2014-6-12 15:47 |个人分类:Python|系统分类:科研笔记| color, background

ArcGIS在安装时就已经默认在本机安装了Python。可是,Python Shell的界面看起来太亮了,对眼睛不太好啊,如图 1

1

在网上搜索一番,之前也有和我同样问题的帖子,不过,时间有点久了,具体的设置还是有点变化,我在下面再叙述一下。

Installing:

1.Close IDLE (if open)

2.Add the lines below to ~ArcGIS10.2/Lib/idlelib/config-highlight.def

3.Start IDLE

4.Click Options -> Configure IDLE

5.Click the Highlighting tab

6.Select a Built-in Theme, convert IDLE New to desert

7.Select desert

8.Click OK

代码:

[desert]

definition-foreground= #98fb98

error-foreground= #ff0000

string-background= #333333

keyword-foreground= #cc6600

normal-foreground= #f0e68c

comment-background= #333333

hit-foreground =#ffffff

break-foreground= black

builtin-background= #333333

stdout-foreground= #eeeeee

cursor-foreground= #ffcc00

hit-background =#333333

comment-foreground= #87ceeb

hilite-background= gray

definition-background= #333333

stderr-background= #333333

break-background= #ffff55

console-foreground= #87ceeb

normal-background= #333333

builtin-foreground= #519e51

stdout-background= #333333

console-background= #333333

stderr-foreground= #ff3e40

keyword-background= #333333

string-foreground= #ffa0a0

hilite-foreground= #000000

error-background= #000000

(对于自定义有兴趣的同学,还可以将以上的颜色进行修改,注意这些颜色都是十六进制的(Hex),RGB2Hex

最终的结果:

2




https://wap.sciencenet.cn/blog-1148346-802805.html

上一篇:ArcGIS10.2:Add X Y Data
下一篇:Python:win32com
收藏 IP: 111.198.54.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-6-3 20:26

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部