コード例 #1
0
 def build_window(self, height, width, ypos, xpos, name=""):
     """
     """
     self.height = height
     self.width = width
     window = curses.newwin(height, width, ypos, xpos)
     window.border()
     if name:
         window.addstr(
             1,
             centralized_pos(width, name),
             name
         )
         window.addstr(2, 1, "----------------------")
     return window