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?
if you are refereeing to IDLE i did this simple steps from this link
(its for ubuntu but worked in windows as well)
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
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.
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.
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
You can,,go to options then configure IDE, then on the settings window select highlights, on the rightside press the button below a builtin theme, then choose your choice theme
Related
This is an repost.
I am kind of new in QtDesigner and wanted to do something about the uglyness of just some buttons.
All i have done yesterday was looking on the internet on how to change the background color of a screen in Qt Designer. How to change the color of a button and how to make it flow into another color on the sides. Guess what.
I found nothing.
I hope that some of you die-hard coders know what i need..
EDIT 1: What i mean with a color flowing into another:
Here pink flows into purple, do you get what I mean?
To make the changes of colors you can use stylesheets, in Qt Designer you must follow the following steps:
Right click on the item you want to change and select: change stylesheet
Then press the button to the color side and select background-color, Then select the color and press the OK buttons.
Output:
plus+:
There are terminal and python console in pycharm, which are very convenient. But I found that the font size was too small to recognize in terminal or python console. How can change the font size in the terminal or python console?
In PyCharm 2016.3, the console font setting is squirrelled away under Settings > Editor > Colors & Fonts > Console Font:
Note: Changes to the colors and font are not visible immediately, you have to restart the terminal session to apply them. It's not enough to just hide and reopen the terminal. Just click the red cross button on the terminal's toolbar (Close Terminal Session) and reopen it. The same is valid also for the Python Console.
The location of console font changed in the latest versions of Pycharm.
Settings -> Editor -> Color Scheme -> Console Font
Go to File\Settings\Editor\Color & Fonts and choose save as to save currently used schema by a new name in order to make changes on a new schema. Then in mentioned direction go to console font and set size.
I thought it doesn't work for me either but the problem was that:
you have to close all terminal windows to see the spacing effect.
A simple google search would have lead you here.
You just need to create a personal scheme under settings >Editor > color and fonts.
Edit:Here this further explanation may help more.
1.In color and fonts choose save as and give a scheme name.
2.Go to console font and change size and primary font, which will be inaccessible if you didn't choose the personal scheme you created earlier.
I wanna change qgis mainwindow menubar's and titlebar's background and text colour using python plugin I used following code
qgis.mainWindow().setWindowTitle("mytitle")
qgis.mainWindow().setStyleSheet("
QMenuBar{
background-color:blue;
}
")
but this change only background of menubar but does effect on the menu option of the menu bar I wanna customize menu option text colour according to background colour.
I also want to change tilte bar colour please let me know the solotion
You can apply a dark theme to QGIS by going to Options > Application > UITheme and selecting Night Mapping.
If that's not how you like it, you can at least look at the nightmapping theming to see how it's done and tweak to your liking.
https://github.com/qgis/QGIS/blob/master/resources/themes/Night%20Mapping/style.qss
I want to add colorless icons to menu items. To look reasonably, the icons should have the same color as the text used in the menu. It works everywhere except Ubuntu. The problem is that the default Ubuntu Unity theme uses different colors for the main menu and for other text (e.g. popup menus) in the application. I need the color specifically used by the main menu.
QApplication.palette().color(QPalette.Text) returns the dark gray color used by text in the application. It's almost invisible on the dark gray menu background.
I tried the palette() method on a QMenu descendant, but it returns the same value as QApplication.palette().
It turns out QMainWindow.menuBar().palette() has colors matching the Unity menu on top of the screen (I just learned it's called appmenu). That makes it possible to use the same color as the menu text.
But there is a problem. The version of the icon for the QtIcon.Active mode is not used for the active menu item. That can be seen in the high contrast mode. The text color changes, but the icon color doesn't. The icon "disappears" when the menu item is selected. That's not good enough for a polished program.
I tried many workarounds, such as adding extra pixmaps to the icon with QIcon.addPixmap(). Nothing works. The appmenu operates in a separate process and doesn't want to our "Active" icon. So I'm going to draw real icons that look good on any reasonable background and don't need to change color with the widget.
Too bad. I expected that the QIcon mode and state were made specifically for such tasks.
I want to change the wxpython menubar colours.
How can I do it?
There are two ways
Hard way , write your own custom menu bar from PyControl, position it at top of window, and create popup windows for submenus.
Easier way: you can use win32api to change system menu colors for your app. Here is an example showing that http://code.activestate.com/recipes/440507-changing-the-background-color-of-the-menu-bar-in-a/
don't think it's doable -- it defaults to the platform's native look