

def subwin(self, *args):
    nlines = 0
    ncols = 0
    if (len(args) == 2):
        (begin_y, begin_x) = args
    elif (len(args) == 4):
        (nlines, ncols, begin_y, begin_x) = args
    else:
        raise error('subwin requires 2 or 4 arguments')
    if lib._m_ispad(self._win):
        win = lib.subpad(self._win, nlines, ncols, begin_y, begin_x)
    else:
        win = lib.subwin(self._win, nlines, ncols, begin_y, begin_x)
    return Window(_check_NULL(win))

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cffi-1.5.2/demo/_curses.py Window.subwin/original