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
e6afe6a4
Kaydet (Commit)
e6afe6a4
authored
Agu 16, 1991
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Initial revision
üst
8cf301e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
BoxParent.py
Lib/lib-stdwin/BoxParent.py
+41
-0
BoxParent.py
Lib/stdwin/BoxParent.py
+41
-0
No files found.
Lib/lib-stdwin/BoxParent.py
0 → 100644
Dosyayı görüntüle @
e6afe6a4
from
TransParent
import
TransParent
class
BoxParent
()
=
TransParent
():
#
def
create
(
self
,
(
parent
,
(
dh
,
dv
))):
self
=
TransParent
.
create
(
self
,
parent
)
self
.
dh
=
dh
self
.
dv
=
dv
return
self
#
def
getminsize
(
self
,
(
m
,
(
width
,
height
))):
width
=
max
(
0
,
width
-
2
*
self
.
dh
)
height
=
max
(
0
,
height
-
2
*
self
.
dv
)
width
,
height
=
self
.
child
.
getminsize
(
m
,
(
width
,
height
))
return
width
+
2
*
self
.
dh
,
height
+
2
*
self
.
dv
#
def
setbounds
(
self
,
bounds
):
(
left
,
top
),
(
right
,
bottom
)
=
bounds
self
.
bounds
=
bounds
left
=
min
(
right
,
left
+
self
.
dh
)
top
=
min
(
bottom
,
top
+
self
.
dv
)
right
=
max
(
left
,
right
-
self
.
dh
)
bottom
=
max
(
top
,
bottom
-
self
.
dv
)
self
.
innerbounds
=
(
left
,
top
),
(
right
,
bottom
)
self
.
child
.
setbounds
(
self
.
innerbounds
)
#
def
getbounds
(
self
):
return
self
.
bounds
#
def
draw
(
self
,
args
):
d
,
area
=
args
(
left
,
top
),
(
right
,
bottom
)
=
self
.
bounds
left
=
left
+
1
top
=
top
+
1
right
=
right
-
1
bottom
=
bottom
-
1
d
.
box
((
left
,
top
),
(
right
,
bottom
))
TransParent
.
draw
(
self
,
args
)
# XXX clip to innerbounds?
#
# XXX should scroll clip to innerbounds???
# XXX currently the only user restricts itself to child's bounds
Lib/stdwin/BoxParent.py
0 → 100755
Dosyayı görüntüle @
e6afe6a4
from
TransParent
import
TransParent
class
BoxParent
()
=
TransParent
():
#
def
create
(
self
,
(
parent
,
(
dh
,
dv
))):
self
=
TransParent
.
create
(
self
,
parent
)
self
.
dh
=
dh
self
.
dv
=
dv
return
self
#
def
getminsize
(
self
,
(
m
,
(
width
,
height
))):
width
=
max
(
0
,
width
-
2
*
self
.
dh
)
height
=
max
(
0
,
height
-
2
*
self
.
dv
)
width
,
height
=
self
.
child
.
getminsize
(
m
,
(
width
,
height
))
return
width
+
2
*
self
.
dh
,
height
+
2
*
self
.
dv
#
def
setbounds
(
self
,
bounds
):
(
left
,
top
),
(
right
,
bottom
)
=
bounds
self
.
bounds
=
bounds
left
=
min
(
right
,
left
+
self
.
dh
)
top
=
min
(
bottom
,
top
+
self
.
dv
)
right
=
max
(
left
,
right
-
self
.
dh
)
bottom
=
max
(
top
,
bottom
-
self
.
dv
)
self
.
innerbounds
=
(
left
,
top
),
(
right
,
bottom
)
self
.
child
.
setbounds
(
self
.
innerbounds
)
#
def
getbounds
(
self
):
return
self
.
bounds
#
def
draw
(
self
,
args
):
d
,
area
=
args
(
left
,
top
),
(
right
,
bottom
)
=
self
.
bounds
left
=
left
+
1
top
=
top
+
1
right
=
right
-
1
bottom
=
bottom
-
1
d
.
box
((
left
,
top
),
(
right
,
bottom
))
TransParent
.
draw
(
self
,
args
)
# XXX clip to innerbounds?
#
# XXX should scroll clip to innerbounds???
# XXX currently the only user restricts itself to child's bounds
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