Use a fake pad to make tests runnable
This commit is contained in:
@ -18,12 +18,12 @@ class MenuDisplay(Display):
|
||||
self.toplefty = toplefty
|
||||
|
||||
# Menu values are printed in pad
|
||||
self.pad = curses.newpad(self.trueheight, self.truewidth + 1)
|
||||
self.pad = self.newpad(self.trueheight, self.truewidth + 1)
|
||||
for i in range(self.trueheight):
|
||||
self.pad.addstr(i, 0, " " + self.values[i].value)
|
||||
|
||||
# Menu box
|
||||
self.menubox = curses.newpad(self.height, self.width)
|
||||
self.menubox = self.newpad(self.height, self.width)
|
||||
self.menubox.addstr(0, 0, "┏" + "━" * (self.width - 2) + "┓")
|
||||
for i in range(1, self.height - 2):
|
||||
self.menubox.addstr(i, 0, "┃" + " " * (self.width - 2) + "┃")
|
||||
|
Reference in New Issue
Block a user