Linting
This commit is contained in:
@ -91,17 +91,18 @@ class HorizontalSplit(Display):
|
||||
self.pad.addstr(0, i, "━")
|
||||
self.pad.refresh(0, 0, self.y, self.x, self.y, self.x + self.width - 1)
|
||||
|
||||
|
||||
class Box(Display):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.pad = self.newpad(self.rows, self.cols)
|
||||
|
||||
|
||||
def display(self) -> None:
|
||||
self.pad.addstr(0, 0, "┏" + "━" * (self.width - 2) + "┓")
|
||||
for i in range(1, self.height - 1):
|
||||
self.pad.addstr(i, 0, "┃")
|
||||
self.pad.addstr(i, self.width - 1, "┃")
|
||||
self.pad.addstr(self.height - 1, 0,
|
||||
"┗" + "━" * (self.width - 2) + "┛")
|
||||
self.pad.refresh(0, 0, self.y, self.x, self.y + self.height - 1, self.x + self.width - 1)
|
||||
self.pad.addstr(self.height - 1, 0, "┗" + "━" * (self.width - 2) + "┛")
|
||||
self.pad.refresh(0, 0, self.y, self.x, self.y + self.height - 1,
|
||||
self.x + self.width - 1)
|
||||
|
Reference in New Issue
Block a user