(f, *args, **kw)
| 194 | _root.after(_POLL_INTERVAL, _tk_pump) |
| 195 | |
| 196 | def _tkCall(f, *args, **kw): |
| 197 | # execute synchronous call to f in the Tk thread |
| 198 | # this function should be used when a return value from |
| 199 | # f is required or when synchronizing the threads. |
| 200 | # call to _tkCall in Tk thread == DEADLOCK ! |
| 201 | if not _thread_running: |
| 202 | raise GraphicsError, DEAD_THREAD |
| 203 | def func(): |
| 204 | return f(*args, **kw) |
| 205 | _tk_request.put((func,True),True) |
| 206 | result = _tk_result.get(True) |
| 207 | return result |
| 208 | |
| 209 | def _tkExec(f, *args, **kw): |
| 210 | # schedule f to execute in the Tk thread. This function does |
no test coverage detected