Lines Matching refs:win

1067         for win in _top_sep_win, _menu_win, _bot_sep_win, _help_win:
1068 win.mvwin(0, 0)
1076 def _height(win): argument
1079 return win.getmaxyx()[0]
1082 def _width(win): argument
1085 return win.getmaxyx()[1]
1714 win = _styled_win("body")
1715 win.keypad(True)
1720 _resize_input_dialog(win, title, info_lines)
1731 return _width(win) - 4
1741 _draw_input_dialog(win, title, info_lines, s, i, hscroll)
1745 c = _getch_compat(win)
1750 _resize_input_dialog(win, title, info_lines)
1767 def _resize_input_dialog(win, title, info_lines): argument
1782 win.resize(win_height, win_width)
1783 win.mvwin((screen_height - win_height)//2,
1787 def _draw_input_dialog(win, title, info_lines, s, i, hscroll): argument
1788 edit_width = _width(win) - 4
1790 win.erase()
1794 _safe_addstr(win, 2, 2, visible_s + " "*(edit_width - len(visible_s)),
1798 _safe_addstr(win, 4 + linenr, 2, line)
1801 _draw_frame(win, title)
1803 _safe_move(win, 2, 2 + i - hscroll)
1805 win.noutrefresh()
1940 win = _styled_win("body")
1941 win.keypad(True)
1943 _resize_key_dialog(win, text)
1948 _draw_key_dialog(win, title, text)
1952 c = _getch_compat(win)
1957 _resize_key_dialog(win, text)
1968 def _resize_key_dialog(win, text): argument
1978 win.resize(win_height, win_width)
1979 win.mvwin((screen_height - win_height)//2,
1983 def _draw_key_dialog(win, title, text): argument
1984 win.erase()
1987 _safe_addstr(win, 2 + i, 2, line)
1990 _draw_frame(win, title)
1992 win.noutrefresh()
1995 def _draw_frame(win, title): argument
1998 win_height, win_width = win.getmaxyx()
2000 win.attron(_style["frame"])
2003 _safe_hline(win, 0, 0, " ", win_width)
2004 _safe_hline(win, win_height - 1, 0, " ", win_width)
2007 _safe_vline(win, 0, 0, " ", win_height)
2008 _safe_vline(win, 0, win_width - 1, " ", win_height)
2011 _safe_addstr(win, 0, max((win_width - len(title))//2, 0), title)
2013 win.attroff(_style["frame"])
2281 for win in matches_win, bot_sep_win, help_win:
2282 win.mvwin(0, 0)
2480 for win in text_win, bot_sep_win, help_win:
2481 win.mvwin(0, 0)
2848 win = curses.newwin(1, 1)
2849 _set_style(win, style)
2850 return win
2853 def _set_style(win, style): argument
2856 win.bkgdset(" ", _style[style])
2859 def _max_scroll(lst, win): argument
2864 return max(0, len(lst) - _height(win))
3145 def _getch_compat(win): argument
3155 c = win.get_wch()
3157 c = win.getch()
3198 def _safe_addstr(win, *args): argument
3205 y, x = win.getyx()
3214 maxlen = _width(win) - x
3222 win.addnstr(y, x, s, maxlen)
3224 win.addnstr(y, x, s, maxlen, attr)
3229 def _safe_addch(win, *args): argument
3231 win.addch(*args)
3236 def _safe_hline(win, *args): argument
3238 win.hline(*args)
3243 def _safe_vline(win, *args): argument
3245 win.vline(*args)
3250 def _safe_move(win, *args): argument
3252 win.move(*args)