(f, *args, **kw)
| 207 | return result |
| 208 | |
| 209 | def _tkExec(f, *args, **kw): |
| 210 | # schedule f to execute in the Tk thread. This function does |
| 211 | # not wait for f to actually be executed. |
| 212 | #global _exception_info |
| 213 | #_exception_info = None |
| 214 | if not _thread_running: |
| 215 | raise GraphicsError, DEAD_THREAD |
| 216 | def func(): |
| 217 | return f(*args, **kw) |
| 218 | _tk_request.put((func,False),True) |
| 219 | #if _exception_info is not None: |
| 220 | # raise GraphicsError, "Invalid Operation: %s" % str(_exception_info) |
| 221 | |
| 222 | def _tkShutdown(): |
| 223 | # shutdown the tk thread |
no outgoing calls
no test coverage detected