Clicking on the main image changes its color

This commit is contained in:
Yohann D'ANELLO
2020-12-11 21:17:21 +01:00
parent 81de0d8eb0
commit 777668848e
3 changed files with 17 additions and 1 deletions

View File

@ -48,6 +48,10 @@ class Display:
def color_pair(self, number: int) -> int:
return curses.color_pair(number) if self.screen else 0
def init_color(self, number: int, red: int, green: int, blue: int) -> None:
return curses.init_color(number, red, green, blue) \
if self.screen else None
def resize(self, y: int, x: int, height: int, width: int,
resize_pad: bool = True) -> None:
self.x = x