quakeforge/tools/misc/spin.py
2011-06-15 17:33:03 +09:00

7 lines
193 B
Python

import sys
import time
spinner = ("('-' )","(._. )","( ._. )","( ._.)","( '-')","( '-' )")
for i in range (24):
sys.stdout.write (spinner[i%6] + '\r')
sys.stdout.flush ()
time.sleep (1)