def __init__(self, stdscr, label="", x=0, y=0, width=10, height=1):
self.default_color = 'white-black'
self.stdscr = stdscr
self.label = label
self.x, self.y = x, y
self.width, self.height = width, height
self.borderbox = curses.newwin(height + 2, width + 2, y - 1, x - 1)
self.textinpt = curses.newwin(height, width, y, x)
self.textinpt.bkgd(' ', colors.get_colorpair(self.default_color))
self.textinpt.keypad(1)
self.refresh()
评论列表
文章目录