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.
(tcl=tcl)
| 94 | tcl = tkinter.Tcl() |
| 95 | |
| 96 | def handle_tk_events(tcl=tcl): |
| 97 | """Process any tk events that are ready to be dispatched if tkinter |
| 98 | has been imported, a tcl interpreter has been created and tk has been |
| 99 | loaded.""" |
| 100 | tcl.eval("update") |
| 101 | |
| 102 | # Thread shared globals: Establish a queue between a subthread (which handles |
| 103 | # the socket) and the main thread (which runs user code), plus global |