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
233bf2c5
Kaydet (Commit)
233bf2c5
authored
Tem 13, 2001
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
py-cvs-rel2_1 (Rev 1.2) merge - whitespace normalization
üst
4e32e7e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
MultiScrolledLists.py
Lib/idlelib/MultiScrolledLists.py
+13
-13
No files found.
Lib/idlelib/MultiScrolledLists.py
Dosyayı görüntüle @
233bf2c5
...
...
@@ -10,7 +10,7 @@ from Separator import HSeparator
from
ScrolledList
import
ScrolledList
class
MultiScrolledLists
:
def
__init__
(
self
,
root
,
nlists
=
2
):
assert
nlists
>=
1
self
.
root
=
root
...
...
@@ -51,17 +51,17 @@ class MultiScrolledLists:
self
.
fill
(
0
)
# XXX one after_idle isn't enough; two are...
top
.
after_idle
(
self
.
call_pack_propagate_1
)
def
call_pack_propagate_1
(
self
):
self
.
top
.
after_idle
(
self
.
call_pack_propagate
)
def
call_pack_propagate
(
self
):
for
frame
in
self
.
frames
:
frame
.
pack_propagate
(
0
)
def
close
(
self
,
event
=
None
):
self
.
top
.
destroy
()
def
settitle
(
self
):
short
=
self
.
shorttitle
()
long
=
self
.
longtitle
()
...
...
@@ -80,23 +80,23 @@ class MultiScrolledLists:
def
longtitle
(
self
):
# override this
return
"Multi Scrolled Lists"
def
shorttitle
(
self
):
# override this
return
None
def
width
(
self
,
i
):
# override this
return
20
def
height
(
self
,
i
):
# override this
return
10
def
subtitle
(
self
,
i
):
# override this
return
"Column
%
d"
%
i
def
fill
(
self
,
i
):
for
k
in
range
(
i
,
self
.
nlists
):
self
.
lists
[
k
]
.
clear
()
...
...
@@ -105,14 +105,14 @@ class MultiScrolledLists:
l
=
self
.
items
(
i
)
for
s
in
l
:
list
.
append
(
s
)
def
on_select
(
self
,
index
,
i
):
item
=
self
.
lists
[
i
]
.
get
(
index
)
del
self
.
path
[
i
:]
self
.
path
.
append
(
item
)
if
i
+
1
<
self
.
nlists
:
self
.
fill
(
i
+
1
)
def
items
(
self
,
i
):
# override this
l
=
[]
...
...
@@ -122,7 +122,7 @@ class MultiScrolledLists:
s
=
self
.
path
[
i
-
1
]
+
"."
+
s
l
.
append
(
s
)
return
l
def
on_double
(
self
,
index
,
i
):
pass
...
...
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