更改python shell的背景颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4416642/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Change background color of python shell
提问by rookie
Is it possible to change background color of the Python Shell from white to black for example. I did find how to change text color, but can't figure out how to change background color. I'm running it under the Windows. Any suggestions?
例如,是否可以将 Python Shell 的背景颜色从白色更改为黑色。我确实找到了如何更改文本颜色,但无法弄清楚如何更改背景颜色。我在 Windows 下运行它。有什么建议?
采纳答案by Saif al Harthi
if you are refereeing to IDLE i did this simple steps from this link
如果你是裁判 IDLE 我从这个链接做了这个简单的步骤
(its for ubuntu but worked in windows as well)
(它适用于 ubuntu,但也适用于 Windows)
http://ubuntuforums.org/showthread.php?t=657799
http://ubuntuforums.org/showthread.php?t=657799
and if you are talking about the windows Prompt , you can use the color command or just right click & select properties & edit the color settings
如果您正在谈论 windows Prompt ,您可以使用颜色命令或只需右键单击并选择属性并编辑颜色设置
回答by martineau
Right-click the upper-left corner of the Python console window and select Properties. In the dialog box that appears, pick the tab labeled Colors. On it you can set the screen background and text color.
右键单击 Python 控制台窗口的左上角并选择属性。在出现的对话框中,选择标有颜色的选项卡。您可以在其上设置屏幕背景和文本颜色。


回答by mariana soffer
If you are reffering to the window idle for example for version 2.6 there is now way to change the background color from withe to another one. But you can change the background color of your text if you go to options. Another thing you can do is to use other gui for python which could be more elaborated such as eclipse pydev or to use a text editor you like and configure it the way you want to write your scripts and then run them into the idle.
例如,如果您正在为 2.6 版的窗口闲置,现在可以将背景颜色从 with 更改为另一种。但是,如果您转到选项,您可以更改文本的背景颜色。您可以做的另一件事是使用其他 gui for python,它可能更详细,例如 eclipse pydev 或使用您喜欢的文本编辑器并按照您想要编写脚本的方式对其进行配置,然后将它们运行到空闲状态。
回答by Eyasu
just go through simple steps - go to options - configure IDLE - highlighting - then select background and click on choose color for: - you can change the color to any color but becareful if u change only the background color the foreground color may not be visible because they both might be black
只需通过简单的步骤 - 转到选项 - 配置空闲 - 突出显示 - 然后选择背景并单击选择颜色: - 您可以将颜色更改为任何颜色,但如果您仅更改背景颜色,则前景色可能不可见,请注意因为他们可能都是黑人
Enjoy
享受

