diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 05:56:09 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 05:56:09 (GMT) |
commit | e6ddc8b20b493fef2e7cffb2e1351fe1d238857e (patch) | |
tree | 3b3d8fcd92e1d8f0cad44297d5c2ae8522bb984c /Demo/curses/tclock.py | |
parent | 4fba4521e836e0cab08316592392b1e4d06eb6ef (diff) | |
download | cpython-e6ddc8b20b493fef2e7cffb2e1351fe1d238857e.zip cpython-e6ddc8b20b493fef2e7cffb2e1351fe1d238857e.tar.gz cpython-e6ddc8b20b493fef2e7cffb2e1351fe1d238857e.tar.bz2 |
Whitespace normalization. Ran reindent.py over the entire source tree.
Diffstat (limited to 'Demo/curses/tclock.py')
-rw-r--r-- | Demo/curses/tclock.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/curses/tclock.py b/Demo/curses/tclock.py index f423e9a..1950043 100644 --- a/Demo/curses/tclock.py +++ b/Demo/curses/tclock.py @@ -66,7 +66,7 @@ def dline(pair, from_x, from_y, x2, y2, ch): def main(win): global stdscr stdscr = win - + lastbeep = -1 my_bg = curses.COLOR_BLACK @@ -80,7 +80,7 @@ def main(win): cx = (curses.COLS - 1) / 2 cy = curses.LINES / 2 - ch = min( cy-1, int(cx / ASPECT) - 1) + ch = min( cy-1, int(cx / ASPECT) - 1) mradius = (3 * ch) / 4 hradius = ch / 2 sradius = 5 * ch / 6 @@ -95,7 +95,7 @@ def main(win): "ASCII Clock by Howard Jones <ha.jones@ic.ac.uk>, 1994") sradius = max(sradius-4, 8) - + while 1: curses.napms(1000) @@ -125,7 +125,7 @@ def main(win): stdscr.attrset(curses.color_pair(1)) plot(cx + sdx, cy - sdy, ord('O')) - + if curses.has_colors(): stdscr.attrset(curses.color_pair(0)) |