MCPcopy Index your code
hub / github.com/csev/py4e / _tkExec

Function _tkExec

code/graphics/graphics.py:209–220  ·  view source on GitHub ↗
(f, *args, **kw)

Source from the content-addressed store, hash-verified

207 return result
208
209def _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
222def _tkShutdown():
223 # shutdown the tk thread

Callers 11

setBackgroundMethod · 0.85
plotMethod · 0.85
plotPixelMethod · 0.85
undrawMethod · 0.85
moveMethod · 0.85
_reconfigMethod · 0.85
setFillMethod · 0.85
_setFontComponentMethod · 0.85
setTextColorMethod · 0.85
setPixelMethod · 0.85
saveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected