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
ef8f8810
Kaydet (Commit)
ef8f8810
authored
Agu 08, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add Widget.unbind and {Canvas,Text}.tag_unbind.
In Widget.__init__, call config only if cnf not empty.
üst
16d6e710
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
Tkinter.py
Lib/lib-tk/Tkinter.py
+9
-2
Tkinter.py
Lib/tkinter/Tkinter.py
+9
-2
No files found.
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
ef8f8810
...
@@ -316,6 +316,8 @@ class Misc:
...
@@ -316,6 +316,8 @@ class Misc:
self
.
tk
.
call
(
'update'
)
self
.
tk
.
call
(
'update'
)
def
update_idletasks
(
self
):
def
update_idletasks
(
self
):
self
.
tk
.
call
(
'update'
,
'idletasks'
)
self
.
tk
.
call
(
'update'
,
'idletasks'
)
def
unbind
(
self
,
sequence
):
self
.
tk
.
call
(
'bind'
,
self
.
_w
,
sequence
,
''
)
def
bind
(
self
,
sequence
,
func
,
add
=
''
):
def
bind
(
self
,
sequence
,
func
,
add
=
''
):
if
add
:
add
=
'+'
if
add
:
add
=
'+'
name
=
self
.
_register
(
func
,
self
.
_substitute
)
name
=
self
.
_register
(
func
,
self
.
_substitute
)
...
@@ -644,7 +646,8 @@ class Widget(Misc, Pack, Place):
...
@@ -644,7 +646,8 @@ class Widget(Misc, Pack, Place):
Widget
.
_setup
(
self
,
master
,
cnf
)
Widget
.
_setup
(
self
,
master
,
cnf
)
self
.
widgetName
=
widgetName
self
.
widgetName
=
widgetName
apply
(
self
.
tk
.
call
,
(
widgetName
,
self
.
_w
)
+
extra
)
apply
(
self
.
tk
.
call
,
(
widgetName
,
self
.
_w
)
+
extra
)
Widget
.
config
(
self
,
cnf
)
if
cnf
:
Widget
.
config
(
self
,
cnf
)
def
config
(
self
,
cnf
=
None
):
def
config
(
self
,
cnf
=
None
):
cnf
=
_cnfmerge
(
cnf
)
cnf
=
_cnfmerge
(
cnf
)
if
cnf
is
None
:
if
cnf
is
None
:
...
@@ -749,7 +752,9 @@ class Canvas(Widget):
...
@@ -749,7 +752,9 @@ class Canvas(Widget):
self
.
addtag
(
'withtag'
,
tagOrId
)
self
.
addtag
(
'withtag'
,
tagOrId
)
def
bbox
(
self
,
*
args
):
def
bbox
(
self
,
*
args
):
return
self
.
_getints
(
self
.
_do
(
'bbox'
,
args
))
or
None
return
self
.
_getints
(
self
.
_do
(
'bbox'
,
args
))
or
None
def
bind
(
self
,
tagOrId
,
sequence
,
func
,
add
=
''
):
def
tag_unbind
(
self
,
tagOrId
,
sequence
):
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
''
)
def
tag_bind
(
self
,
tagOrId
,
sequence
,
func
,
add
=
''
):
if
add
:
add
=
'+'
if
add
:
add
=
'+'
name
=
self
.
_register
(
func
,
self
.
_substitute
)
name
=
self
.
_register
(
func
,
self
.
_substitute
)
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
...
@@ -1101,6 +1106,8 @@ class Text(Widget):
...
@@ -1101,6 +1106,8 @@ class Text(Widget):
def
tag_add
(
self
,
tagName
,
index1
,
index2
=
None
):
def
tag_add
(
self
,
tagName
,
index1
,
index2
=
None
):
self
.
tk
.
call
(
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'add'
,
tagName
,
index1
,
index2
)
self
.
_w
,
'tag'
,
'add'
,
tagName
,
index1
,
index2
)
def
tag_unbind
(
self
,
tagName
,
sequence
):
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'bind'
,
tagName
,
sequence
,
''
)
def
tag_bind
(
self
,
tagName
,
sequence
,
func
,
add
=
''
):
def
tag_bind
(
self
,
tagName
,
sequence
,
func
,
add
=
''
):
if
add
:
add
=
'+'
if
add
:
add
=
'+'
name
=
self
.
_register
(
func
,
self
.
_substitute
)
name
=
self
.
_register
(
func
,
self
.
_substitute
)
...
...
Lib/tkinter/Tkinter.py
Dosyayı görüntüle @
ef8f8810
...
@@ -316,6 +316,8 @@ class Misc:
...
@@ -316,6 +316,8 @@ class Misc:
self
.
tk
.
call
(
'update'
)
self
.
tk
.
call
(
'update'
)
def
update_idletasks
(
self
):
def
update_idletasks
(
self
):
self
.
tk
.
call
(
'update'
,
'idletasks'
)
self
.
tk
.
call
(
'update'
,
'idletasks'
)
def
unbind
(
self
,
sequence
):
self
.
tk
.
call
(
'bind'
,
self
.
_w
,
sequence
,
''
)
def
bind
(
self
,
sequence
,
func
,
add
=
''
):
def
bind
(
self
,
sequence
,
func
,
add
=
''
):
if
add
:
add
=
'+'
if
add
:
add
=
'+'
name
=
self
.
_register
(
func
,
self
.
_substitute
)
name
=
self
.
_register
(
func
,
self
.
_substitute
)
...
@@ -644,7 +646,8 @@ class Widget(Misc, Pack, Place):
...
@@ -644,7 +646,8 @@ class Widget(Misc, Pack, Place):
Widget
.
_setup
(
self
,
master
,
cnf
)
Widget
.
_setup
(
self
,
master
,
cnf
)
self
.
widgetName
=
widgetName
self
.
widgetName
=
widgetName
apply
(
self
.
tk
.
call
,
(
widgetName
,
self
.
_w
)
+
extra
)
apply
(
self
.
tk
.
call
,
(
widgetName
,
self
.
_w
)
+
extra
)
Widget
.
config
(
self
,
cnf
)
if
cnf
:
Widget
.
config
(
self
,
cnf
)
def
config
(
self
,
cnf
=
None
):
def
config
(
self
,
cnf
=
None
):
cnf
=
_cnfmerge
(
cnf
)
cnf
=
_cnfmerge
(
cnf
)
if
cnf
is
None
:
if
cnf
is
None
:
...
@@ -749,7 +752,9 @@ class Canvas(Widget):
...
@@ -749,7 +752,9 @@ class Canvas(Widget):
self
.
addtag
(
'withtag'
,
tagOrId
)
self
.
addtag
(
'withtag'
,
tagOrId
)
def
bbox
(
self
,
*
args
):
def
bbox
(
self
,
*
args
):
return
self
.
_getints
(
self
.
_do
(
'bbox'
,
args
))
or
None
return
self
.
_getints
(
self
.
_do
(
'bbox'
,
args
))
or
None
def
bind
(
self
,
tagOrId
,
sequence
,
func
,
add
=
''
):
def
tag_unbind
(
self
,
tagOrId
,
sequence
):
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
''
)
def
tag_bind
(
self
,
tagOrId
,
sequence
,
func
,
add
=
''
):
if
add
:
add
=
'+'
if
add
:
add
=
'+'
name
=
self
.
_register
(
func
,
self
.
_substitute
)
name
=
self
.
_register
(
func
,
self
.
_substitute
)
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
self
.
tk
.
call
(
self
.
_w
,
'bind'
,
tagOrId
,
sequence
,
...
@@ -1101,6 +1106,8 @@ class Text(Widget):
...
@@ -1101,6 +1106,8 @@ class Text(Widget):
def
tag_add
(
self
,
tagName
,
index1
,
index2
=
None
):
def
tag_add
(
self
,
tagName
,
index1
,
index2
=
None
):
self
.
tk
.
call
(
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'add'
,
tagName
,
index1
,
index2
)
self
.
_w
,
'tag'
,
'add'
,
tagName
,
index1
,
index2
)
def
tag_unbind
(
self
,
tagName
,
sequence
):
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'bind'
,
tagName
,
sequence
,
''
)
def
tag_bind
(
self
,
tagName
,
sequence
,
func
,
add
=
''
):
def
tag_bind
(
self
,
tagName
,
sequence
,
func
,
add
=
''
):
if
add
:
add
=
'+'
if
add
:
add
=
'+'
name
=
self
.
_register
(
func
,
self
.
_substitute
)
name
=
self
.
_register
(
func
,
self
.
_substitute
)
...
...
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