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
a1ec5fea
Kaydet (Commit)
a1ec5fea
authored
Ara 26, 1990
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unimportant changes.
üst
debbe041
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
Split.py
Lib/lib-stdwin/Split.py
+12
-9
Split.py
Lib/stdwin/Split.py
+12
-9
No files found.
Lib/lib-stdwin/Split.py
Dosyayı görüntüle @
a1ec5fea
# Generic Split implementation.
# Generic Split implementation.
# Use as a base class for other splits.
# Use as a base class for other splits.
# Derived classes should at least implement the methods that call
# unimpl() below: minsize(), getbounds() and setbounds().
Error
=
'Split.Error'
# Exception
Error
=
'Split.Error'
# Exception
...
@@ -23,21 +25,22 @@ class Split():
...
@@ -23,21 +25,22 @@ class Split():
# Downcalls from parent to child
# Downcalls from parent to child
#
#
def
destroy
(
self
):
def
destroy
(
self
):
self
.
parent
=
0
self
.
parent
=
None
for
child
in
self
.
children
:
for
child
in
self
.
children
:
child
.
destroy
()
child
.
destroy
()
self
.
children
[:]
=
[
]
del
self
.
children
[:
]
self
.
mouse_interest
[:]
=
[
]
del
self
.
mouse_interest
[:
]
self
.
timer_interest
[:]
=
[
]
del
self
.
timer_interest
[:
]
self
.
mouse_focus
=
0
self
.
mouse_focus
=
None
#
#
def
minsize
(
self
,
m
):
return
unimpl
()
def
minsize
(
self
,
m
):
return
unimpl
()
def
getbounds
(
self
):
return
unimpl
()
def
getbounds
(
self
):
return
unimpl
()
def
setbounds
(
self
,
bounds
):
unimpl
()
def
setbounds
(
self
,
bounds
):
unimpl
()
def
draw
(
self
,
args
):
#
def
draw
(
self
,
d_detail
):
# (Could avoid calls to children outside the area)
# (Could avoid calls to children outside the area)
for
child
in
self
.
children
:
for
child
in
self
.
children
:
child
.
draw
(
args
)
child
.
draw
(
d_detail
)
#
#
# Downcalls only made after certain upcalls
# Downcalls only made after certain upcalls
#
#
...
@@ -107,7 +110,7 @@ class Split():
...
@@ -107,7 +110,7 @@ class Split():
#
#
def
change
(
self
,
area
):
def
change
(
self
,
area
):
self
.
parent
.
change
(
area
)
self
.
parent
.
change
(
area
)
def
scroll
(
self
,
ar
gs
):
def
scroll
(
self
,
ar
ea_vector
):
self
.
parent
.
scroll
(
ar
gs
)
self
.
parent
.
scroll
(
ar
ea_vector
)
def
settimer
(
self
,
itimer
):
def
settimer
(
self
,
itimer
):
self
.
parent
.
settimer
(
itimer
)
self
.
parent
.
settimer
(
itimer
)
Lib/stdwin/Split.py
Dosyayı görüntüle @
a1ec5fea
# Generic Split implementation.
# Generic Split implementation.
# Use as a base class for other splits.
# Use as a base class for other splits.
# Derived classes should at least implement the methods that call
# unimpl() below: minsize(), getbounds() and setbounds().
Error
=
'Split.Error'
# Exception
Error
=
'Split.Error'
# Exception
...
@@ -23,21 +25,22 @@ class Split():
...
@@ -23,21 +25,22 @@ class Split():
# Downcalls from parent to child
# Downcalls from parent to child
#
#
def
destroy
(
self
):
def
destroy
(
self
):
self
.
parent
=
0
self
.
parent
=
None
for
child
in
self
.
children
:
for
child
in
self
.
children
:
child
.
destroy
()
child
.
destroy
()
self
.
children
[:]
=
[
]
del
self
.
children
[:
]
self
.
mouse_interest
[:]
=
[
]
del
self
.
mouse_interest
[:
]
self
.
timer_interest
[:]
=
[
]
del
self
.
timer_interest
[:
]
self
.
mouse_focus
=
0
self
.
mouse_focus
=
None
#
#
def
minsize
(
self
,
m
):
return
unimpl
()
def
minsize
(
self
,
m
):
return
unimpl
()
def
getbounds
(
self
):
return
unimpl
()
def
getbounds
(
self
):
return
unimpl
()
def
setbounds
(
self
,
bounds
):
unimpl
()
def
setbounds
(
self
,
bounds
):
unimpl
()
def
draw
(
self
,
args
):
#
def
draw
(
self
,
d_detail
):
# (Could avoid calls to children outside the area)
# (Could avoid calls to children outside the area)
for
child
in
self
.
children
:
for
child
in
self
.
children
:
child
.
draw
(
args
)
child
.
draw
(
d_detail
)
#
#
# Downcalls only made after certain upcalls
# Downcalls only made after certain upcalls
#
#
...
@@ -107,7 +110,7 @@ class Split():
...
@@ -107,7 +110,7 @@ class Split():
#
#
def
change
(
self
,
area
):
def
change
(
self
,
area
):
self
.
parent
.
change
(
area
)
self
.
parent
.
change
(
area
)
def
scroll
(
self
,
ar
gs
):
def
scroll
(
self
,
ar
ea_vector
):
self
.
parent
.
scroll
(
ar
gs
)
self
.
parent
.
scroll
(
ar
ea_vector
)
def
settimer
(
self
,
itimer
):
def
settimer
(
self
,
itimer
):
self
.
parent
.
settimer
(
itimer
)
self
.
parent
.
settimer
(
itimer
)
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