def resize(self, h, w): """Resize the drawable and create a new pad.""" self.h = h self.w = w self.pad = curses.newpad(h + 1, w + 1)