classification
Title: IDLE: config-main.def contains windows-specific settings
Type: Stage:
Components: IDLE Versions: Python 3.2, Python 3.1, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gpolo, kbk, ronaldoussoren
Priority: low Keywords:

Created on 2006-07-06 08:29 by ronaldoussoren, last changed 2010-08-04 23:38 by terry.reedy.

Messages (4)
msg29066 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-07-06 08:29
The default values in config-main.def contain values that are specific for 
Windows. This means that the key-bindings for other platforms, such as 
OSX will be wrong (because config-main selects the windows keybindings 
as the default keybindings).

I've worked around this by copying a mac version of config-main.def over 
the installed version of config-main.def from Mac/IDLE/Makefile.in. That 
is obviously a crude hack, but I know of no better solution.
msg29067 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2006-07-17 18:46
Logged In: YES 
user_id=149084

Not so crude, since there is a Mac/IDLE/ dir? I
gather this works ok for 2.5 installs on OSX?

Perhaps IDLE should be modified to try to detect
the platform and only use the entry in
config-main.def if detection fails.  The [keys]
section is necessary, I believe, to mirror the
[keys] section in the user's config-main.cfg if
he changes keybindings.

But you would still need Mac/IDLE/, would you not?
msg29068 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-07-18 12:34
Logged In: YES 
user_id=580910

Mac/IDLE contains support code for building and installing an application 
bundle for IDLE, which gives us a nice icon to click on :-)

Detecting the platform and automaticly using platform-specific settings 
would be nice and would mostly solve my problem. "Mostly" because config-
extensions.def also contains key-binding definitions; which could well be 
platform-specific (AquaTk doesn't seem to support the ALT modifier).

IMHO the current workaround is crude because I maintain a seperate copy of 
several configuration files just to change a small number of settings.  I have 
lowered the priority of this issue because I don't think this is very important.
msg84287 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2009-03-27 23:29
For config-extensions.def:
  What do you think about moving all shortcuts to config-keys and then
always use the name of the shorcut in config-extensions instead of the
shorcut ?

For config-main.def:
  For the [Keys] section I believe it would be better to rename the
"default" option to "custom". If custom is true, then idle uses the key
set defined by the name option, otherwise it uses the one that fits
better the platform. If the user changes the key set that supposedly
fits better his platform through the "Configure IDLE" dialog then we set
custom to True (independently of this new key set being a custom one or
a default one but that is not the default for his platform) and set the
name option to the name of the key set. Any thoughts ?
History
Date User Action Args
2010-08-04 23:38:51terry.reedysetversions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.5
2009-03-27 23:29:08gpolosetnosy: + gpolo
messages: + msg84287
2006-07-06 08:29:03ronaldoussorencreate