mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
6c95da384e
commit
3f6dd68e2a
2 changed files with 28 additions and 28 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue