1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-24 15:59:42 +02:00

reformating

This commit is contained in:
dbarzin 2022-06-11 21:06:59 +02:00
parent 7134251bb3
commit 1a29d021cf
6 changed files with 192 additions and 181 deletions

View file

@ -13,15 +13,12 @@ screen.clear()
while True:
key = screen.getch()
screen.clear()
screen.addstr(0, 0, 'key: {}'.format(key))
screen.addstr(0, 0, "key: {}".format(key))
if key == curses.KEY_MOUSE:
_, x, y, _, button = curses.getmouse()
screen.addstr(1, 0, 'x, y, button = {}, {}, {}'.format(x, y, button))
screen.addstr(1, 0, "x, y, button = {}, {}, {}".format(x, y, button))
elif key == 27:
break
curses.endwin()
curses.flushinp()