Make the last two curses demos work again -- they were using float

division.  The other curses demos all work fine, so I'm more confident
that the curses library actually works. (Don't try to display
non-ASCII characters, of course.)
This commit is contained in:
Guido van Rossum 2007-07-24 17:57:36 +00:00
parent 6c95da384e
commit 3f6dd68e2a
2 changed files with 28 additions and 28 deletions

View file

@ -158,7 +158,7 @@ def keyloop(stdscr):
board.display(update_board=False)
# xpos, ypos are the cursor's position
xpos, ypos = board.X/2, board.Y/2
xpos, ypos = board.X//2, board.Y//2
# Main loop:
while (1):