MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / erase

Method erase

tools/python-3.11.9-amd64/Tools/demo/life.py:84–87  ·  view source on GitHub ↗

Clear the entire board and update the board display

(self)

Source from the content-addressed store, hash-verified

82 self.scr.refresh()
83
84 def erase(self):
85 """Clear the entire board and update the board display"""
86 self.state = {}
87 self.display(update_board=False)
88
89 def display(self, update_board=True):
90 """Display the whole board, optionally computing one generation"""

Callers 1

keyloopFunction · 0.95

Calls 1

displayMethod · 0.95

Tested by

no test coverage detected