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
e11d4ccb
Kaydet (Commit)
e11d4ccb
authored
Agu 16, 1991
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
minsize -> getminsize
Keyboard interface
üst
3c8045ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
8 deletions
+34
-8
TransParent.py
Lib/lib-stdwin/TransParent.py
+17
-4
TransParent.py
Lib/stdwin/TransParent.py
+17
-4
No files found.
Lib/lib-stdwin/TransParent.py
Dosyayı görüntüle @
e11d4ccb
...
...
@@ -31,7 +31,7 @@ class TransParent() = ManageOneChild():
def
create
(
self
,
parent
):
parent
.
addchild
(
self
)
self
.
parent
=
parent
self
.
child
=
0
# No child yet
self
.
child
=
None
# No child yet
return
self
#
# Downcalls from parent to child
...
...
@@ -41,11 +41,12 @@ class TransParent() = ManageOneChild():
if
self
.
child
:
self
.
child
.
destroy
()
del
self
.
child
#
def
minsize
(
self
,
m
):
def
getminsize
(
self
,
args
):
if
not
self
.
child
:
return
0
,
0
m
,
size
=
args
return
size
else
:
return
self
.
child
.
minsize
(
m
)
return
self
.
child
.
getminsize
(
args
)
def
getbounds
(
self
,
bounds
):
if
not
self
.
child
:
raise
Error
,
'getbounds w/o child'
...
...
@@ -75,6 +76,13 @@ class TransParent() = ManageOneChild():
def
mouse_up
(
self
,
detail
):
if
self
.
child
:
self
.
child
.
mouse_up
(
detail
)
#
def
keybd
(
self
,
type_detail
):
self
.
child
.
keybd
(
type_detail
)
def
activate
(
self
):
self
.
child
.
activate
()
def
deactivate
(
self
):
self
.
child
.
deactivate
()
#
def
timer
(
self
):
if
self
.
child
:
self
.
child
.
timer
()
#
...
...
@@ -95,6 +103,11 @@ class TransParent() = ManageOneChild():
def
no_altdraw
(
self
,
child
):
self
.
parent
.
no_altdraw
(
self
)
#
def
need_keybd
(
self
,
child
):
self
.
parent
.
need_keybd
(
self
)
def
no_keybd
(
self
,
child
):
self
.
parent
.
no_keybd
(
self
)
#
def
begindrawing
(
self
):
return
self
.
parent
.
begindrawing
()
def
beginmeasuring
(
self
):
...
...
Lib/stdwin/TransParent.py
Dosyayı görüntüle @
e11d4ccb
...
...
@@ -31,7 +31,7 @@ class TransParent() = ManageOneChild():
def
create
(
self
,
parent
):
parent
.
addchild
(
self
)
self
.
parent
=
parent
self
.
child
=
0
# No child yet
self
.
child
=
None
# No child yet
return
self
#
# Downcalls from parent to child
...
...
@@ -41,11 +41,12 @@ class TransParent() = ManageOneChild():
if
self
.
child
:
self
.
child
.
destroy
()
del
self
.
child
#
def
minsize
(
self
,
m
):
def
getminsize
(
self
,
args
):
if
not
self
.
child
:
return
0
,
0
m
,
size
=
args
return
size
else
:
return
self
.
child
.
minsize
(
m
)
return
self
.
child
.
getminsize
(
args
)
def
getbounds
(
self
,
bounds
):
if
not
self
.
child
:
raise
Error
,
'getbounds w/o child'
...
...
@@ -75,6 +76,13 @@ class TransParent() = ManageOneChild():
def
mouse_up
(
self
,
detail
):
if
self
.
child
:
self
.
child
.
mouse_up
(
detail
)
#
def
keybd
(
self
,
type_detail
):
self
.
child
.
keybd
(
type_detail
)
def
activate
(
self
):
self
.
child
.
activate
()
def
deactivate
(
self
):
self
.
child
.
deactivate
()
#
def
timer
(
self
):
if
self
.
child
:
self
.
child
.
timer
()
#
...
...
@@ -95,6 +103,11 @@ class TransParent() = ManageOneChild():
def
no_altdraw
(
self
,
child
):
self
.
parent
.
no_altdraw
(
self
)
#
def
need_keybd
(
self
,
child
):
self
.
parent
.
need_keybd
(
self
)
def
no_keybd
(
self
,
child
):
self
.
parent
.
no_keybd
(
self
)
#
def
begindrawing
(
self
):
return
self
.
parent
.
begindrawing
()
def
beginmeasuring
(
self
):
...
...
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