MCPcopy Index your code
hub / github.com/geekcomputers/Python / display_pause

Method display_pause

Snake Game Using Turtle/scoreboard.py:65–71  ·  view source on GitHub ↗

Displays the PAUSED message.

(self)

Source from the content-addressed store, hash-verified

63 self.write("Click 'Restart' or Press 'R'", align="center", font=INSTRUCTION_FONT)
64
65 def display_pause(self):
66 """Displays the PAUSED message."""
67 self.goto(0, 40)
68 self.color(colors.MESSAGE_COLOR)
69 self.write("PAUSED", align="center", font=MESSAGE_FONT)
70 self.goto(0, -40)
71 self.write("Click 'Resume' or Press 'Space'", align="center", font=INSTRUCTION_FONT)
72
73 def display_start_message(self):
74 """Displays the welcome message and starting instructions."""

Callers 1

toggle_pause_resumeFunction · 0.80

Calls 1

colorMethod · 0.80

Tested by

no test coverage detected