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
4696ffbf
Kaydet (Commit)
4696ffbf
authored
Nis 02, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove "disgusting hack" in favour of closure (patch #1462235)
üst
c5ffd919
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
Tkinter.py
Lib/lib-tk/Tkinter.py
+2
-5
No files found.
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
4696ffbf
...
@@ -449,18 +449,15 @@ class Misc:
...
@@ -449,18 +449,15 @@ class Misc:
# I'd rather use time.sleep(ms*0.001)
# I'd rather use time.sleep(ms*0.001)
self
.
tk
.
call
(
'after'
,
ms
)
self
.
tk
.
call
(
'after'
,
ms
)
else
:
else
:
# XXX Disgusting hack to clean up after calling func
def
callit
():
tmp
=
[]
def
callit
(
func
=
func
,
args
=
args
,
self
=
self
,
tmp
=
tmp
):
try
:
try
:
func
(
*
args
)
func
(
*
args
)
finally
:
finally
:
try
:
try
:
self
.
deletecommand
(
tmp
[
0
]
)
self
.
deletecommand
(
name
)
except
TclError
:
except
TclError
:
pass
pass
name
=
self
.
_register
(
callit
)
name
=
self
.
_register
(
callit
)
tmp
.
append
(
name
)
return
self
.
tk
.
call
(
'after'
,
ms
,
name
)
return
self
.
tk
.
call
(
'after'
,
ms
,
name
)
def
after_idle
(
self
,
func
,
*
args
):
def
after_idle
(
self
,
func
,
*
args
):
"""Call FUNC once if the Tcl main loop has no event to
"""Call FUNC once if the Tcl main loop has no event to
...
...
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