python shell背景颜色改变_科学网—Python Shell Background Color - 李旭的博文

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.ClickOptions ->Configure IDLE

5.Click the Highlighting tab

6.Selecta Built-in Theme,convertIDLE Newtodesert

7.Selectdesert

8.ClickOK

代码:

[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

转载本文请联系原作者获取授权,同时请注明本文来自李旭科学网博客。

链接地址:http://blog.sciencenet.cn/blog-1148346-802805.html

上一篇:ArcGIS10.2:Add X Y Data

下一篇:Python:win32com

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值