MCPcopy Create free account
hub / github.com/ActiveState/code / mainloop

Function mainloop

recipes/Python/577525_Quiz_Me_25_main/recipe-577525.py:34–43  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

32 cleanup(stderr)
33
34def mainloop(root):
35 # Threading Support Experiment
36 gui_logs.root = exe_queue.Pipe(root)
37 while True:
38 try:
39 root.update()
40 except:
41 return
42 time.sleep(1 / 64)
43 gui_logs.root.update()
44
45def cleanup(stream):
46 # Record Any Errors

Callers 2

mainFunction · 0.70
mainFunction · 0.50

Calls 2

updateMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected