| 67 | mainloop() |
| 68 | |
| 69 | def 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 | |
| 83 | def high_score_table(): |
| 84 | global HS_database |