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

Function main

tools/python-3.11.9-amd64/Lib/turtledemo/sorting_animate.py:189–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 onkey(bye, "space")
188
189def main():
190 getscreen().clearscreen()
191 ht(); penup()
192 init_shelf()
193 show_text(instructions1)
194 show_text(instructions2, line=1)
195 enable_keys()
196 listen()
197 return "EVENTLOOP"
198
199instructions1 = "press i for insertion sort, s for selection sort, q for quicksort"
200instructions2 = "spacebar to quit, r to randomize"

Callers 1

sorting_animate.pyFile · 0.70

Calls 4

init_shelfFunction · 0.85
show_textFunction · 0.85
enable_keysFunction · 0.85
listenFunction · 0.85

Tested by

no test coverage detected