diff options
Diffstat (limited to 'Demo/curses/rain.py')
-rw-r--r-- | Demo/curses/rain.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/curses/rain.py b/Demo/curses/rain.py index 69794b3..9d46e6e 100644 --- a/Demo/curses/rain.py +++ b/Demo/curses/rain.py @@ -48,7 +48,7 @@ def main(win): ypos[j] = randrange(0, r) + 2 j = 0 - while 1: + while True: x = randrange(0, c) + 2 y = randrange(0, r) + 2 @@ -83,7 +83,7 @@ def main(win): ch = stdscr.getch() if ch == ord('q') or ch == ord('Q'): - return 0 + return elif ch == ord('s'): stdscr.nodelay(0) elif ch == ord(' '): |