Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c11ccf3

Browse files
author
Steven M. Gava
committed
start of new config handling stuff
1 parent fa26f7c commit c11ccf3

6 files changed

Lines changed: 468 additions & 48 deletions

File tree

Lib/idlelib/config-extensions.def

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# IDLE reads several config files to determine user preferences. This
2+
# file is the default config file for idle extensions settings.
3+
4+
[SearchBinding]
5+
enable=1
6+
7+
[AutoIndent]
8+
enable=1
9+
10+
[AutoExpand]
11+
enable=1
12+
13+
[FormatParagraph]
14+
enable=1
15+
16+
[ZoomHeight]
17+
enable=1
18+
19+
#[ScriptBinding] # disabled in favor of ExecBinding
20+
#enable=0
21+
22+
[ExecBinding]
23+
enable=1
24+
25+
[CallTips]
26+
enable=1
27+
28+
[ParenMatch]
29+
enable=0
30+
style= expression
31+
flash-delay= 500
32+
bell= 1
33+
hilite-foreground= black
34+
hilite-background= #43cd80

Lib/idlelib/config-highlight.def

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# IDLE reads several config files to determine user preferences. This
2+
# file is the default config file for idle highlight theme settings.
3+
4+
[IDLE Classic Old - plain fonts]
5+
normal-foreground= black
6+
normal-background= white
7+
normal-fontStyle= normal
8+
keyword-foreground= #ff7700
9+
keyword-fontStyle= normal
10+
comment-foreground= #dd0000
11+
comment-fontStyle= normal
12+
string-foreground= #00aa00
13+
string-fontStyle= normal
14+
definition-foreground= #0000ff
15+
definition-fontStyle= normal
16+
hilite-foreground= #000068
17+
hilite-background= #006868
18+
hilite-fontStyle= normal
19+
break-foreground= #ff7777
20+
break-fontStyle= normal
21+
hit-background= #000000
22+
hit-foreground= #ffffff
23+
hit-fontStyle= normal
24+
cursor-background= black
25+
error-background= #ff7777
26+
#shell window
27+
stdout-foreground= blue
28+
stdout-fontStyle= normal
29+
stderr-foreground= red
30+
stderr-fontStyle= normal
31+
console-foreground= #770000
32+
console-fontStyle= normal
33+
34+
[IDLE Classic New]
35+
normal-foreground= black
36+
normal-background= white
37+
normal-fontStyle= normal
38+
keyword-foreground= #ff7700
39+
keyword-fontStyle= bold
40+
comment-foreground= #dd0000
41+
comment-fontStyle= italic
42+
string-foreground= #00aa00
43+
string-fontStyle= normal
44+
definition-foreground= #0000ff
45+
definition-fontStyle= bold
46+
hilite-foreground= #000068
47+
hilite-background= #006868
48+
break-foreground= #ff7777
49+
hit-background= #000000
50+
hit-foreground= #ffffff
51+
cursor-background= black
52+
error-background= #ff7777
53+
#shell window
54+
stdout-foreground= blue
55+
stderr-foreground= red
56+
console-foreground= #770000

Lib/idlelib/config-keys.def

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# IDLE reads several config files to determine user preferences. This
2+
# file is the default config file for idle key binding settings.
3+
4+
[IDLE Classic - windows]
5+
Copy= '<Control-c> <Control-C>'
6+
Cut= '<Control-x> <Control-X>'
7+
Paste= '<Control-v> <Control-V>'
8+
beginning-of-line= '<Control-a> <Home>'
9+
center-insert= '<Control-l>'
10+
close-all-windows= '<Control-q>'
11+
close-window= '<Alt-F4>'
12+
dump-undo-state= '<Control-backslash>'
13+
end-of-file= '<Control-d>'
14+
python-docs= '<F1>'
15+
history-next= '<Alt-n>'
16+
history-previous= '<Alt-p>'
17+
interrupt-execution= '<Control-c>'
18+
open-class-browser= '<Alt-c>'
19+
open-module= '<Alt-m>'
20+
open-new-window= '<Control-n>'
21+
open-window-from-file= '<Control-o>'
22+
plain-newline-and-indent= '<Control-j>'
23+
redo= '<Control-y>'
24+
remove-selection= '<Escape>'
25+
save-copy-of-window-as-file= '<Alt-Shift-s>'
26+
save-window-as-file= '<Alt-s>'
27+
save-window= '<Control-s>'
28+
select-all= '<Alt-a>'
29+
toggle-auto-coloring= '<Control-slash>'
30+
undo= '<Control-z>'
31+
32+
[IDLE Classic - posix]
33+
Copy= '<Alt-w> <Meta-w>'
34+
Cut= '<Control-w>'
35+
Paste= '<Control-y>'
36+
beginning-of-line= '<Control-a> <Home>'
37+
center-insert= '<Control-l>'
38+
close-all-windows= '<Control-x><Control-c>'
39+
close-window= '<Control-x><Control-0> <Control-x><Key-0>'
40+
do-nothing= '<Control-x>'
41+
dump-undo-state= '<Control-backslash>'
42+
end-of-file= '<Control-d>'
43+
help= '<F1>'
44+
history-next= '<Alt-n> <Meta-n>'
45+
history-previous= '<Alt-p> <Meta-p>'
46+
interrupt-execution= '<Control-c>'
47+
open-class-browser= '<Control-x><Control-b>'
48+
open-module= '<Control-x><Control-m>'
49+
open-new-window= '<Control-x><Control-n>'
50+
open-window-from-file= '<Control-x><Control-f>'
51+
plain-newline-and-indent= '<Control-j>'
52+
redo= '<Alt-z> <Meta-z>'
53+
save-copy-of-window-as-file= '<Control-x><w>'
54+
save-window-as-file= '<Control-x><Control-w>'
55+
save-window= '<Control-x><Control-s>'
56+
select-all= '<Alt-a> <Meta-a>'
57+
toggle-auto-coloring= '<Control-slash>'
58+
undo= '<Control-z>'

Lib/idlelib/config-main.def

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# IDLE reads several config files to determine user preferences. This
2+
# file is the default config file for general idle settings.
3+
#
4+
# When IDLE starts, it will look in
5+
# the following two sets of files, in order:
6+
#
7+
# default configuration
8+
# ---------------------
9+
# config-main.def the default general config file
10+
# config-extensions.def the default extension config file
11+
# config-highlight.def the default highlighting config file
12+
# config-keys.def the default keybinding config file
13+
#
14+
# user configuration
15+
# -------------------
16+
# ~/.idlerc/idle-main.cfg the user general config file
17+
# ~/.idlerc/idle-extensions.cfg the user extension config file
18+
# ~/.idlerc/idle-highlight.cfg the user highlighting config file
19+
# ~/.idlerc/idle-keys.cfg the user keybinding config file
20+
# XXX what about Windows?
21+
#
22+
# Any options the user saves through the config dialog will be saved to
23+
# the relevant user config file. Reverting any general setting to the
24+
# default causes that entry to be wiped from the user file and re-read
25+
# from the default file. User highlighting themes or keybinding sets are
26+
# retained unless specifically deleted within the config dialog. Choosing
27+
# one of the default themes or keysets just applies the relevant settings
28+
# from the default file.
29+
30+
[General]
31+
run-in-separate-process= 1
32+
33+
[EditorWindow]
34+
width= 80
35+
height= 24
36+
font= courier
37+
font-size= 12
38+
39+
[Indent]
40+
use-spaces= 1
41+
num-spaces= 4
42+
tab-cols= 4
43+
44+
[Theme]
45+
user= 0
46+
name= "IDLE Classic New"
47+
48+
[Keys]
49+
user= 0
50+
name= "IDLE Classic - windows"
51+
52+
[RecentFiles]
53+
1=
54+
2=
55+
3=
56+
4=
57+
5=
58+
6=
59+
7=
60+
8=
61+
9=
62+
10=
63+

0 commit comments

Comments
 (0)