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
4718bf89
Kaydet (Commit)
4718bf89
authored
Şub 12, 2008
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert some custom sort comparison functions to equivalent key functions.
üst
53dbe39b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
configDialog.py
Lib/idlelib/configDialog.py
+1
-6
configHandler.py
Lib/idlelib/configHandler.py
+1
-9
No files found.
Lib/idlelib/configDialog.py
Dosyayı görüntüle @
4718bf89
...
...
@@ -980,16 +980,11 @@ class ConfigDialog(Toplevel):
self
.
SetThemeType
()
##load theme element option menu
themeNames
=
list
(
self
.
themeElements
.
keys
())
themeNames
.
sort
(
self
.
__ThemeNameIndexCompare
)
themeNames
.
sort
(
key
=
lambda
x
:
self
.
themeElements
[
x
][
1
]
)
self
.
optMenuHighlightTarget
.
SetMenu
(
themeNames
,
themeNames
[
0
])
self
.
PaintThemeSample
()
self
.
SetHighlightTarget
()
def
__ThemeNameIndexCompare
(
self
,
a
,
b
):
if
self
.
themeElements
[
a
][
1
]
<
self
.
themeElements
[
b
][
1
]:
return
-
1
elif
self
.
themeElements
[
a
][
1
]
==
self
.
themeElements
[
b
][
1
]:
return
0
else
:
return
1
def
LoadKeyCfg
(
self
):
##current keys type radiobutton
self
.
keysAreBuiltin
.
set
(
idleConf
.
GetOption
(
'main'
,
'Keys'
,
'default'
,
...
...
Lib/idlelib/configHandler.py
Dosyayı görüntüle @
4718bf89
...
...
@@ -642,17 +642,9 @@ class IdleConf:
helpPath
=
value
[
1
]
.
strip
()
if
menuItem
and
helpPath
:
#neither are empty strings
helpSources
.
append
(
(
menuItem
,
helpPath
,
option
)
)
helpSources
.
sort
(
self
.
__helpsort
)
helpSources
.
sort
(
key
=
lambda
x
:
x
[
2
]
)
return
helpSources
def
__helpsort
(
self
,
h1
,
h2
):
if
int
(
h1
[
2
])
<
int
(
h2
[
2
]):
return
-
1
elif
int
(
h1
[
2
])
>
int
(
h2
[
2
]):
return
1
else
:
return
0
def
GetAllExtraHelpSourcesList
(
self
):
"""
Returns a list of tuples containing the details of all additional help
...
...
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