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

Function make_root

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

Source from the content-addressed store, hash-verified

67 mainloop()
68
69def make_root():
70 # Make root window and canvas.
71 global root, graph
72 root = Tk()
73 root.resizable(False, False)
74 root.title(TITLE)
75 root.protocol('WM_DELETE_WINDOW', quit_game)
76 root.bind_all('<Escape>', quit_game)
77 left = (root.winfo_screenwidth() - WIDTH) / 2
78 top = (root.winfo_screenheight() - HEIGHT) / 2
79 root.geometry('%dx%d+%d+%d' % (WIDTH, HEIGHT, left, top))
80 graph = Canvas(root, width=WIDTH, height=HEIGHT)
81 graph.pack()
82
83def high_score_table():
84 global HS_database

Callers 1

mainFunction · 0.85

Calls 3

TkClass · 0.50
titleMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected