Redraw map on key press
This commit is contained in:
parent
9f02d63a7d
commit
7b5458e1d5
2 changed files with 9 additions and 3 deletions
5
maps.py
5
maps.py
|
|
@ -34,6 +34,11 @@ class Map():
|
|||
def __exit__(self, type, value, tb):
|
||||
self._lock.release()
|
||||
|
||||
def redraw(self):
|
||||
self._pad.redrawwin()
|
||||
|
||||
self.drawevent.set()
|
||||
|
||||
def draw(self):
|
||||
with self.chunkpool as pool:
|
||||
for x in range(chunkx(self.width) + 2): # +2, not +1, or there will be empty gaps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue