Browse Source

Curses

pull/3/head
Jure Šorn 5 years ago
parent
commit
5de5e31a95
1 changed files with 3 additions and 2 deletions
  1. 5
      README.md

5
README.md

@ -1065,9 +1065,10 @@ def draw(screen):
pass
def get_border(screen):
Coords = collections.namedtuple('Coords', ['x', 'y'])
from collections import namedtuple
P = namedtuple('P', 'x y')
height, width = screen.getmaxyx()
return Coords(width - 1, height - 1)
return P(width - 1, height - 1)
```
Image

Loading…
Cancel
Save