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
753445a4
Kaydet (Commit)
753445a4
authored
Mar 26, 2012
tarafından
Andrew Svetlov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #989712: update the code to process tkinter messages in IDLE
without mainloop. Thanks to Roger Serwy for patch.
üst
0df54298
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
run.py
Lib/idlelib/run.py
+6
-9
No files found.
Lib/idlelib/run.py
Dosyayı görüntüle @
753445a4
...
...
@@ -6,6 +6,7 @@ import traceback
import
_thread
as
thread
import
threading
import
queue
import
tkinter
from
idlelib
import
CallTips
from
idlelib
import
AutoComplete
...
...
@@ -39,18 +40,14 @@ else:
warnings
.
formatwarning
=
idle_formatwarning_subproc
def
handle_tk_events
():
tcl
=
tkinter
.
Tcl
()
def
handle_tk_events
(
tcl
=
tcl
):
"""Process any tk events that are ready to be dispatched if tkinter
has been imported, a tcl interpreter has been created and tk has been
loaded."""
tkinter
=
sys
.
modules
.
get
(
'tkinter'
)
if
tkinter
and
tkinter
.
_default_root
:
# tkinter has been imported, an Tcl interpreter was created and
# tk has been loaded.
root
=
tkinter
.
_default_root
while
root
.
tk
.
dooneevent
(
tkinter
.
_tkinter
.
DONT_WAIT
):
# Process pending events.
pass
tcl
.
eval
(
"update"
)
# Thread shared globals: Establish a queue between a subthread (which handles
...
...
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