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

Function quit_game

recipes/Python/502267_Marks_Game/recipe-502267.py:100–103  ·  view source on GitHub ↗
(event=None)

Source from the content-addressed store, hash-verified

98# PROGRAM TERMINATION FUNCTION
99
100def quit_game(event=None):
101 # Save HST and quit program.
102 file(HST_FILE, 'wb').write(zlib.compress(repr(HS_database), 9))
103 root.quit()
104
105################################################################################
106

Callers

nothing calls this directly

Calls 3

compressMethod · 0.80
writeMethod · 0.45
quitMethod · 0.45

Tested by

no test coverage detected