Цвет фона IDLE в Python
Есть ли способ изменить цвет фона IDLE python-3.5 под Windows 10? Я пробовал гугл и читал документы, но не могу найти ответа. Я не уверен, что это вообще возможно .
3 ответа
Для фона текстового окна перейдите в Параметры => Настройки IDLE => вкладка Выделение. Сохраните встроенную тему (обе одинаковые) как настраиваемую тему с новым именем. Измените фон каждого элемента с белым фоном на желаемый цвет. Нажмите Применить или ОК. Или скопируйте следующее в <HOMEDIR>/.idlerc/config-highlight.cfg (который может существовать, а может и не существовать) и изменить #ffffff на желаемый цвет.
Мы только что добавили тему IDLE Dark с глубоким кобальтовым фоном. Для этого оставьте #002240 как есть или измените цвет на другой темный.
Мы планируем добавить средство для изменения всех нормальных фонов сразу. Возможность влиять на диалоги будет позже.
Следуйте этим шагам и защитите свои глаза.
Откройте папку Python по пути, который вы выбрали при установке Python. В данном случае это (C: \ Python27)
Изменить цвет фона оболочки Python
Можно ли, например, изменить цвет фона оболочки Python с белого на черный. Я нашел, как изменить цвет текста, но не могу понять, как изменить цвет фона. Я запускаю его под виндой. Какие-либо предложения?
- Это не относится к Python — это то же самое для всех командных строк. Возможно, более подходит для суперпользователя?
- Возможно, я не понял, что такое «оболочка Python», но вы можете изменить цвета фона и переднего плана .
- Измените цвет с помощью команды .
если вы судите IDLE, я сделал эти простые шаги по этой ссылке
(это для ubuntu, но работает и в Windows)
и если вы говорите о подсказке Windows, вы можете использовать команду цвета или просто щелкнуть правой кнопкой мыши и выбрать свойства и отредактировать настройки цвета
- Если вы потратите время на то, чтобы сделать заказ, он выглядит действительно круто!
- Поскольку этот вопрос и ответ, а также из-за запроса, отправленного на bugs.python.org, мы добавили «IDLE Dark» в качестве встроенной темы для текущих версий 2.7 и 3.4+. Как и другие встроенные темы, ее можно изменить и сохранить как пользовательскую тему.
Щелкните правой кнопкой мыши верхний левый угол окна консоли Python и выберите «Свойства». В появившемся диалоговом окне выберите вкладку Цвета. На нем вы можете установить фон экрана и цвет текста.
Если вы ссылаетесь на незанятое окно, например, для версии 2.6, теперь есть способ изменить цвет фона с белого на другой. Но вы можете изменить цвет фона вашего текста, если зайдете в параметры. Еще вы можете использовать другой графический интерфейс для python, который мог бы быть более проработанным, например eclipse pydev, или использовать текстовый редактор, который вам нравится, и настроить его так, как вы хотите писать свои скрипты, а затем запускать их в режиме ожидания.
просто выполните простые шаги — перейдите к параметрам — настройте IDLE — выделение — затем выберите фон и нажмите кнопку выбора цвета для: — вы можете изменить цвет на любой цвет, но будьте осторожны, если вы измените только цвет фона, цвет переднего плана может быть не виден потому что они оба могут быть черными
How to Get dark theme in Python IDLE[3.8]
Dark Theme in Python IDLE – Version 2.7
Python is a high- level, general-purpose, interactive, interpreted and object-oriented programming language. It was developed in 1991. As Python allows the programmer to write programs and instruction using fewer lines of codes, it has caught the attention of Millions of Developers.
If you are a Python Developer and especially a night-owl programmer, this hack is for you which will transform your Python IDLE 3.8 in Dark Theme which will reduce your eye strain in low light conditions. If you want to feel Monokai Theme of Sublime Text, then go ahead and add the Dark theme to your Python IDLE 3.8 and save your eyes.
What is Python IDLE?
Python IDLE which stands for “Integrated Development and Learning Environment” is an integrated development environment (IDE) for Python Programming Language and is by default installed with the Python installer for Windows.
You can open Python IDLE from the Start menu in the Windows Operating System by searching for ‘IDLE’.
In the case of Python distributions for Linux and macOS, Python IDLE is not available by default.
For Ubuntu Linux, You can install the Python IDLE with the help of the following command:
$ sudo apt-get install idle
Python IDLE is used for executing single line python statements. Developers basically use Python IDLE to develop, modify, execute and debug Python scripts. Python IDLE provides a fully-featured and efficient text editor to write Python scripts. It also includes some awesome features like syntax highlighting, autocompletion and smart indent. Developers love IDLE as it provides the debugger with stepping and breakpoints features.
You can download Python from it’s an official site which automatically comes with Python IDLE.
Why you should add dark theme to your Python IDLE?
The programmers are the main source of income for eye doctors
The dark themes are getting more and popular nowadays for night-owl programmers. Some people just like the vibe, while others use dark themes simply to reduce eye strain and save battery.
Pros:
- Dark themes can reduce eye strain in low-light conditions, more specifically at night time.
- High contrast between foreground and background reduces eye strain.
- Syntax highlighting on Python IDLE can be easier to read with dark themes like monokai.
Adopt Dark Theme and Happy Coding while protecting your most precious organ – ‘Eye’!
Python IDLE Dark Theme Code [Monokai Theme]:
Below is the code for adding Dark Theme in Python IDLE which you will require in the next section describing steps for adding a dark theme to your python IDLE.
The Monokai Theme code changes the syntax highlighting and various text editor component’s colors including foreground and background.
normal-foreground= #F8F8F2
normal-background= #272822
keyword-foreground= #F92672
keyword-background= #272822
builtin-foreground= #66D9EF
builtin-background= #272822
comment-foreground= #75715E
comment-background= #272822
string-foreground= #E6DB74
string-background= #272822
definition-foreground= #A6E22E
definition-background= #272822
hilite-foreground= #F8F8F2
hilite-background= gray
break-foreground= black
break-background= #ffff55
hit-foreground= #F8F8F2
hit-background= #171812
error-foreground= #ff3338
error-background= #272822
cursor-foreground= #F8F8F2
stdout-foreground= #DDDDDD
stdout-background= #272822
stderr-foreground= #ff3338
stderr-background= #272822
console-foreground= #75715E
console-background= #272822
Steps to Add Dark Theme to Your Python IDLE:
1). Open Python Folder from the path you selected during installing Python. In this case it is ( C:\Python38-32 )
2). In Python38-32 Folder, search for Lib and double click on it.
3). In the Lib folder, search for idlelib folder and double click on it.
4). In idlelib folder, search for CONFIG-HIGHLIGHT.DEF file and open it with any text editor tool like Notepad.
5). In the CONFIG-HIGHLIGHT.DEF file, paste the Monokai Code given in the above section. Save and close the file.
6). Now Restart your system, Open Python IDLE, From the menu bar select Options -> Configure IDLE -> Highlighting & You will see the monokai theme in Highlighting themes section. Select Monokai theme and Enjoy
7). Do share this Post if your love your new Python IDLE Look <3, DO share this post in your developer circles as sharing is caring.
Link to Video Tutorial “How to Get dark theme in Python IDLE[3.8]”: https://www.youtube.com/watch?v=4pTRBH5Pa9g
Conclusion:
Finally concluding this article subjected, How to Get dark theme in Python IDLE and execute python scripts like a pro without spoiling your eyes.
We have included the topics; What is Python IDLE?, How to install Python IDLE on your System?, Why you need to add a dark theme to your python IDLE? and Steps to add a dark theme to your python IDLE.
I hope this piece helped you and satisfies the reason for you being here, and if you have any queries or questions related to this thread, then please make a comment below and let me help you with that concern.
Happy Coding and protect your Eyes!
Wing Python IDE
Wing Tips: Dark Mode and Color Configuration in Wing Python IDE
Wing Python IDE provides a number of dark color palettes, and the ability to quickly toggle between light and dark mode using the menu icon in the top right of the IDE window. When Dark Mode is selected, Wing switches to the most recently used dark color configuration, or the default dark configuration if none has been used.
To select which dark mode is used, change Color Palette on the first page of Wing’s Preferences . The dark palettes that ship with Wing are:
Black Background: The classic original dark mode for Wing
Cherry Blossom: New in Wing 7
Dracula: New in Wing 7
One Dark: The default dark color palette
Positronic: New in Wing 7
Solarized Dark
Sun Steel: New in Wing 7
In most cases you will also want to enable the User Interface > Use Color Palette Throughout the UI preference, so that the color palette is applied to more than just editors. This preference is enabled automatically when the Dark Mode menu item is used for the first time, and is enabled in all of the above screenshots. However, it may be disabled so only the editors are displayed dark. Wing will remember that choice when subsequently changing between light and dark modes.
Color Configuration
Aside from selecting the overall color palette with the User Interface > Color Palette preference, it is also possible to override individual colors throughout the preferences, or to write your own color palette, including colors for the UI and optionally also for syntax highlighting in the editor. This is described in more detail in Display Style and Colors.
That’s it for now! We’ll be back soon with more Wing Tips for Wing Python IDE.