Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
052937f0
Kaydet (Commit)
052937f0
authored
Şub 11, 2002
tarafından
Steven M. Gava
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
further work on config saving
üst
ff34626a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
config-highlight.def
Lib/idlelib/config-highlight.def
+4
-4
config-keys.def
Lib/idlelib/config-keys.def
+2
-1
configDialog.py
Lib/idlelib/configDialog.py
+0
-0
configHandler.py
Lib/idlelib/configHandler.py
+12
-3
No files found.
Lib/idlelib/config-highlight.def
Dosyayı görüntüle @
052937f0
...
...
@@ -12,7 +12,7 @@ string-foreground= #00aa00
string-background= #ffffff
definition-foreground= #0000ff
definition-background= #ffffff
hilite-foreground= #
ffffff
hilite-foreground= #
000000
hilite-background= gray
break-foreground= #ff7777
break-background= #ffffff
...
...
@@ -31,8 +31,8 @@ console-foreground= #770000
console-background= #ffffff
[IDLE New]
bold
-foreground= #000000
bold
-background= #ffffff
normal
-foreground= #000000
normal
-background= #ffffff
keyword-foreground= #ff7700
keyword-background= #ffffff
comment-foreground= #dd0000
...
...
@@ -41,7 +41,7 @@ string-foreground= #00aa00
string-background= #ffffff
definition-foreground= #0000ff
definition-background= #ffffff
hilite-foreground= #
ffffff
hilite-foreground= #
000000
hilite-background= gray
break-foreground= #ff7777
break-background= #ffffff
...
...
Lib/idlelib/config-keys.def
Dosyayı görüntüle @
052937f0
...
...
@@ -9,7 +9,7 @@
copy=<Control-c> <Control-C>
cut=<Control-x> <Control-X>
paste=<Control-v> <Control-V>
beginning-of-line=
<Control-a>
<Home>
beginning-of-line= <Home>
center-insert=<Control-l>
close-all-windows=<Control-q>
close-window=<Alt-F4>
...
...
@@ -60,6 +60,7 @@ plain-newline-and-indent=<Control-j>
python-docs=<Control-h>
python-context-help=<Control-Shift-h>
redo=<Alt-z> <Meta-z>
remove-selection=<Escape>
save-copy-of-window-as-file=<Control-x><w>
save-window-as-file=<Control-x><Control-w>
save-window=<Control-x><Control-s>
...
...
Lib/idlelib/configDialog.py
Dosyayı görüntüle @
052937f0
This diff is collapsed.
Click to expand it.
Lib/idlelib/configHandler.py
Dosyayı görüntüle @
052937f0
...
...
@@ -206,7 +206,7 @@ class IdleConf:
return
self
.
userCfg
[
configType
]
.
Get
(
section
,
option
,
type
=
type
)
elif
self
.
defaultCfg
[
configType
]
.
has_option
(
section
,
option
):
return
self
.
defaultCfg
[
configType
]
.
Get
(
section
,
option
,
type
=
type
)
else
:
else
:
#returning default, print warning
warning
=
(
'
\n
Warning: configHandler.py - IdleConf.GetOption -
\n
'
+
' problem retrieving configration option '
+
`option`
+
'
\n
'
+
' from section '
+
`section`
+
'.
\n
'
+
...
...
@@ -311,7 +311,16 @@ class IdleConf:
'console-foreground'
:
'#000000'
,
'console-background'
:
'#ffffff'
}
for
element
in
theme
.
keys
():
colour
=
cfgParser
.
Get
(
type
,
themeName
,
element
,
default
=
theme
[
element
])
print
'themeName:'
,
themeName
,
'theme exists:'
,
cfgParser
.
has_section
(
themeName
)
if
not
cfgParser
.
has_option
(
themeName
,
element
):
#we are going to return a default, print warning
warning
=
(
'
\n
Warning: configHandler.py - IdleConf.GetThemeDict'
+
' -
\n
problem retrieving theme element '
+
`element`
+
'
\n
from theme '
+
`themeName`
+
'.
\n
'
+
' returning default value: '
+
`theme[element]`
+
'
\n
'
)
sys
.
stderr
.
write
(
warning
)
colour
=
cfgParser
.
Get
(
themeName
,
element
,
default
=
theme
[
element
])
theme
[
element
]
=
colour
return
theme
...
...
@@ -323,7 +332,7 @@ class IdleConf:
def
CurrentKeys
(
self
):
"""
Returns the name of the currently active
theme
Returns the name of the currently active
key set
"""
return
self
.
GetOption
(
'main'
,
'Keys'
,
'name'
,
default
=
''
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment