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

Function high_score_table

recipes/Python/502267_Marks_Game/recipe-502267.py:83–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 graph.pack()
82
83def high_score_table():
84 global HS_database
85 # Create high score table.
86 if not globals().has_key('HS_database'):
87 HS_database = load_HST()
88 string = format_HST(HS_database)
89 graph.create_text(WIDTH / 2, HEIGHT / 2, text=string, font='Courier 15', fill=HST_COLOR, tag='HST')
90 graph.create_text(WIDTH / 2, 75, text='Start Game', font='Helvetica 25', fill=B1_COLOR, tag='start')
91 graph.tag_bind('start', '<Any-Enter>', select_start)
92 graph.tag_bind('start', '<Any-Leave>', deselect_start)
93 graph.tag_bind('start', '<1>', start_game)
94 graph['background'] = HST_BACK
95
96################################################################################
97

Callers 3

mainFunction · 0.85
enter_high_scoreFunction · 0.85
do_lose_actionFunction · 0.85

Calls 3

load_HSTFunction · 0.85
format_HSTFunction · 0.70
has_keyMethod · 0.45

Tested by

no test coverage detected