mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-24 15:59:42 +02:00
reformating
This commit is contained in:
parent
7134251bb3
commit
1a29d021cf
6 changed files with 192 additions and 181 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue