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
178ff353
Kaydet (Commit)
178ff353
authored
Ara 27, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix bogus implementation of Group.bind().
Added unbind() to CanvasItem and Group classes.
üst
8371013f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
Canvas.py
Lib/lib-tk/Canvas.py
+6
-2
Canvas.py
Lib/tkinter/Canvas.py
+6
-2
No files found.
Lib/lib-tk/Canvas.py
Dosyayı görüntüle @
178ff353
...
...
@@ -43,6 +43,8 @@ class CanvasItem:
return
(
x1
,
y1
),
(
x2
,
y2
)
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
return
self
.
canvas
.
tag_bind
(
self
.
id
,
sequence
,
command
)
def
unbind
(
self
,
sequence
):
self
.
canvas
.
tag_bind
(
self
.
id
,
sequence
,
''
)
def
config
(
self
,
cnf
=
{},
**
kw
):
return
self
.
canvas
.
itemconfig
(
self
.
id
,
_cnfmerge
((
cnf
,
kw
)))
def
coords
(
self
,
pts
=
()):
...
...
@@ -140,8 +142,10 @@ class Group:
self
.
_do
(
'addtag'
,
'withtag'
,
tagOrId
)
def
bbox
(
self
):
return
self
.
_getints
(
self
.
_do
(
'bbox'
))
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
# XXX args?
return
self
.
_do
(
'bind'
,
sequence
,
command
)
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
return
self
.
canvas
.
tag_bind
(
self
.
id
,
sequence
,
command
)
def
unbind
(
self
,
sequence
):
self
.
canvas
.
tag_bind
(
self
.
id
,
sequence
,
''
)
def
coords
(
self
,
*
pts
):
return
self
.
_do
(
'coords'
,
pts
)
def
dchars
(
self
,
first
,
last
=
None
):
...
...
Lib/tkinter/Canvas.py
Dosyayı görüntüle @
178ff353
...
...
@@ -43,6 +43,8 @@ class CanvasItem:
return
(
x1
,
y1
),
(
x2
,
y2
)
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
return
self
.
canvas
.
tag_bind
(
self
.
id
,
sequence
,
command
)
def
unbind
(
self
,
sequence
):
self
.
canvas
.
tag_bind
(
self
.
id
,
sequence
,
''
)
def
config
(
self
,
cnf
=
{},
**
kw
):
return
self
.
canvas
.
itemconfig
(
self
.
id
,
_cnfmerge
((
cnf
,
kw
)))
def
coords
(
self
,
pts
=
()):
...
...
@@ -140,8 +142,10 @@ class Group:
self
.
_do
(
'addtag'
,
'withtag'
,
tagOrId
)
def
bbox
(
self
):
return
self
.
_getints
(
self
.
_do
(
'bbox'
))
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
# XXX args?
return
self
.
_do
(
'bind'
,
sequence
,
command
)
def
bind
(
self
,
sequence
=
None
,
command
=
None
):
return
self
.
canvas
.
tag_bind
(
self
.
id
,
sequence
,
command
)
def
unbind
(
self
,
sequence
):
self
.
canvas
.
tag_bind
(
self
.
id
,
sequence
,
''
)
def
coords
(
self
,
*
pts
):
return
self
.
_do
(
'coords'
,
pts
)
def
dchars
(
self
,
first
,
last
=
None
):
...
...
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