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
5f28e8fb
Kaydet (Commit)
5f28e8fb
authored
Ock 21, 2002
tarafından
Steven M. Gava
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
extension config reading by configDialog and
beginning of configuration saving
üst
7bb1c9a1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
config-main.def
Lib/idlelib/config-main.def
+5
-5
configDialog.py
Lib/idlelib/configDialog.py
+0
-0
configHandler.py
Lib/idlelib/configHandler.py
+5
-4
No files found.
Lib/idlelib/config-main.def
Dosyayı görüntüle @
5f28e8fb
...
@@ -27,12 +27,13 @@
...
@@ -27,12 +27,13 @@
# from the default file.
# from the default file.
[General]
[General]
run-in-separate-process= 1
editor-on-startup= 1
help-browser= ""
#run-in-separate-process= 1
#help-browser= ""
[HelpFiles]
[HelpFiles]
idle="IDLE _Help",""
#
idle="IDLE _Help",""
python="_Python Documentation",""
#
python="_Python Documentation",""
#additional help sources
#additional help sources
1=
1=
2=
2=
...
@@ -46,7 +47,6 @@ python="_Python Documentation",""
...
@@ -46,7 +47,6 @@ python="_Python Documentation",""
10=
10=
[EditorWindow]
[EditorWindow]
editor-on-startup= 0
width= 80
width= 80
height= 30
height= 30
font= courier
font= courier
...
...
Lib/idlelib/configDialog.py
Dosyayı görüntüle @
5f28e8fb
This diff is collapsed.
Click to expand it.
Lib/idlelib/configHandler.py
Dosyayı görüntüle @
5f28e8fb
...
@@ -23,7 +23,7 @@ class IdleConfParser(ConfigParser):
...
@@ -23,7 +23,7 @@ class IdleConfParser(ConfigParser):
self
.
file
=
cfgFile
self
.
file
=
cfgFile
ConfigParser
.
__init__
(
self
,
defaults
=
cfgDefaults
)
ConfigParser
.
__init__
(
self
,
defaults
=
cfgDefaults
)
def
Get
(
self
,
section
,
option
,
type
=
None
):
#,default=None)
def
Get
(
self
,
section
,
option
,
type
=
None
):
"""
"""
Get an option value for given section/option or return default.
Get an option value for given section/option or return default.
If type is specified, return as type.
If type is specified, return as type.
...
@@ -143,9 +143,9 @@ class IdleConf:
...
@@ -143,9 +143,9 @@ class IdleConf:
Get a list of sections from either the user or default config for
Get a list of sections from either the user or default config for
the given config type.
the given config type.
configSet must be either 'user' or 'default'
configSet must be either 'user' or 'default'
configType must be one of ('extensions','highlight','keys')
configType must be one of ('
main','
extensions','highlight','keys')
"""
"""
if
not
(
configType
in
(
'extensions'
,
'highlight'
,
'keys'
)):
if
not
(
configType
in
(
'
main'
,
'
extensions'
,
'highlight'
,
'keys'
)):
raise
'Invalid configType specified'
raise
'Invalid configType specified'
if
configSet
==
'user'
:
if
configSet
==
'user'
:
cfgParser
=
self
.
userCfg
[
configType
]
cfgParser
=
self
.
userCfg
[
configType
]
...
@@ -224,7 +224,8 @@ class IdleConf:
...
@@ -224,7 +224,8 @@ class IdleConf:
if
activeOnly
:
if
activeOnly
:
activeExtns
=
[]
activeExtns
=
[]
for
extn
in
extns
:
for
extn
in
extns
:
if
self
.
GetOption
(
'extensions'
,
extn
,
'enable'
,
default
=
1
,
type
=
'bool'
):
if
self
.
GetOption
(
'extensions'
,
extn
,
'enable'
,
default
=
1
,
type
=
'bool'
):
#the extension is enabled
#the extension is enabled
activeExtns
.
append
(
extn
)
activeExtns
.
append
(
extn
)
return
activeExtns
return
activeExtns
...
...
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