Change Style of IDLE Python - themes

I want to change the style i.e. theme, button style, font and other items. I can change its style by my own if I can locate the IDLE.py file. So I want to know either of 2 things
--> Where is IDLE located?
--> or How to change everything of it?
Please Help me in getting any of these!

The IDLE application consists of multiple files in <python-dir>/Lib/idlelib. The idle.py file in that directory is just a startup file.
The editor/shell font can be configured in the Fonts tab of the settings dialog open by Options => Configure IDLE (or IDLE => Setting on macOS).
There is no setting to change the style of widgets. IDLE currently uses ttk widgets when possible. It you edit the idlelib files at all extensively, I suggest you make a copy of idlelib so you can make a diff between the edited and original copies.

Related

how to change default settings in .minttyrc programmatically

I want to increase the default font Lucida Console from 9pt to 12pt and adjust the blue color quality. Currently the only way I can find to do it is by right-clicking the Cygwin window and selecting Options & Text and Apply as described in this answer.
I tried to edit .minttyrc to change the font size and color as suggested here. Settings are shown below. But when I relaunch the Cygwin shortcut the default window reappears.
C:\cygwin64\home>cat .minttyrc
FontHeight=12
Blue=127,127,255
BoldBlue=191,191,255
Is there a way to set .minttyrc programmatically ? Surely there is a way to change the default settings without doing this manually every time.
EDIT.
I have Cygwin configured like this ( a screen shot of the window opened by the DOS batch file).
Here is the code suggested by me_and
C:\cygwin64\home\Greg\Work\CMI>cat ~/.minttyrc
cat: '~/.minttyrc': No such file or directory
I can get .bashrc to find .CMI_functions in a sub-directory but I don't know how to get it to find .minttyrc in the same directory
CONCLUSION.
Best results came from editing the Cygwin batch file to relocate all .executable bash files, together with .minttyrc, into C:\cygwin64\home\%USERNAME%.
cd %USERPROFILE%\Desktop\Archive\UTIL
xcopy . C:\cygwin64\home\%USERNAME%\Work\CMI\UTIL /E /I
copy Misc\* C:\cygwin64\home\%USERNAME%\Work\CMI
copy Bash\.* C:\cygwin64\home\%USERNAME%
copy Scripts\*.sh C:\cygwin64\home\%USERNAME%\Work\CMI
The Super User question you've linked to talks about putting the .minttyrc file as ~/.minttyrc, which as a Windows path (at least with default settings) would be something like C:\cygwin64\home\Greg\.minttyrc, but you have it as C:\cygwin64\home\.minttyrc. That's the wrong place, so it's never going to work.
To change the settings for Mintty, you need to have the file in the right location, otherwise it won't be able to load them. Try moving the file to the correct location, and see if that resolves things for you.

Can't see the sidebar in geany 1.27 on mac

I can't see the sidebar in geany 1.27 on Mac OS. Because of this I have no way of seeing the symbol list or document list
Is there a configuration option or else I missed ?
Close Geany, then in .config/geany/geany.conf inside your home dir, set
treeview_position=100
and restart Geany.
When sidebar is collapsed, you can't restore it from the GUI
Per default it should be visible. Check .config/geany/geany.conf inside your home with e.g. vim for this options I could imaging of maybe causing the issue
tab_pos_sidebar=2
sidebar_pos=0
sidebar_symbol_visible=true
sidebar_openfiles_visible=true
sidebar_visible=true
(these values are actually taken from my working OS X configuration of Geany. I'm referring to config file as its much fast the double check than go there click here)

Where are app preferences stored on mac ? (widgets/ toolboxes/ active menus positions)

I have a Qt app that saves a number of settings, including its widgets and toolboxes positions, using an ini file. That allows for a easy restoring of defaults, just by removing the ini file... In windows and Linux.
In OSX (10.6-10.9), removing the ini file created by the app does not restore the toolbar positions to default. So I tried looking for other files... So far I found files created for the app in
/Users/Me/Library/Application Support/z.qhc (a copy of the help database)
/Users/Me/Library/Preferences/com/x/y/Myapp.plist (see contents below)
Root
NSNavPanelExpandedStateForSaveMode YES
NSNavPanelExpandedSizeForSaveMode (712, 448)
NSNavLastRootDirectory ~/x/y
NSNavPanelExpandedSizeForOpenMode (712, 448)
But after removing them, I still remember previous toolbox positions, as well as closed toolboxes.
Where else can I find such preferences/settings files for my app ? Where are the positions of widgets inside the app stored ?
Application states, such as window positions are stored for each user in their Library folder.
Take a look in /Users/Me/Library/Saved Application State

Setting Webstorm/PHPStorm file refresh time

It's probably just some simple setting I can't seem to find. Here's the thing: I have a web project with some Compass/Sass CSS. When I modify the Sass file, Compass automatically creates the corresponding CSS-file for me. If the file has changed, Webstorm uploads it to my server, all by itself. Neat!
However, Webstorm (or PHPStorm, for that matter) doesn't immediately notice the change in the CSS file, but checks on external modifications every 2 minutes or so. The CSS file is then being reloaded and uploaded to the server.
How do I set the time interval for checking for external changes!? 2 minutes (or so, I haven't timed it) is too much, I'd rather set it to 10 seconds. What would work for me too, is if I have the option to tell Webstorm to reload the CSS file, because I know it has changed. Sort of like F5 in eclipse. (F5 in Webstorm copies something and I can't find a refresh command or button anywhere.)
Thanks for helping out!
SOLUTION:
See CrazyCoder's comment. Using the 6.0 EAP version of WS solves the problem.
Such command/action to manually "reload" already there -- 3rd button on main toolbar.
File | Synchronize
There is no option in user interface to make any adjustments for the interval. Only things like "Synchronize when IDE gathers focus".
Maybe it is possible to pass some config values via *.vmoptions file, bit I know none of them for file watcher, unfortunately.

Saving Meta in OS X Terminal

Since Terminal appeared I've saved as ~/mySrvr.term a modified stock .term file
which opens to execute an ssh to a remote server and to modify the appearance.
I have NOT been able to save "use option key as meta" for emacs-ery; there's no slot for it
in the term file and I'm reluctant to wrestle with a keyboard dictionary file.
Am I missing something simple? How do I get option-as-meta to stick between sessions?
Thanks
If you're on Leopard open up preferences in Terminal.app. There is a tab called Settings which is actually settings for different styles of terminal windows. Make a copy of one of Apple's defaults and change it to your liking and make sure to select the option-as-meta radio button there.
I don't even bother opening term files now, under Leopard you can save any group of windows via the Windows menu and it saves all of their settings and and you can open these backup via the same menu. For example, I have a window group that ssh's into a server in two tabs and the third tab starts up an ssh tunnel.
Not sure if this helps, but when I go Shell -> Export Settings and save the file as a .terminal file, there are a few lines that save my option-as-meta preference:
<key>useOptionAsMetaKey</key>
<true/>
These lines are for a .terminal preference file, not for a .term (which is pretty hard to Google for) so they may not be what you're looking for.

Resources