MCPcopy Index your code
hub / github.com/python/cpython / test_editbox

Function test_editbox

Lib/curses/textpad.py:194–201  ·  view source on GitHub ↗
(stdscr)

Source from the content-addressed store, hash-verified

192
193if __name__ == '__main__':
194 def test_editbox(stdscr):
195 ncols, nlines = 9, 4
196 uly, ulx = 15, 20
197 stdscr.addstr(uly-2, ulx, "Use Ctrl-G to end editing.")
198 win = curses.newwin(nlines, ncols, uly, ulx)
199 rectangle(stdscr, uly-1, ulx-1, uly + nlines, ulx + ncols)
200 stdscr.refresh()
201 return Textbox(win).edit()
202
203 str = curses.wrapper(test_editbox)
204 print('Contents of text box:', repr(str))

Callers

nothing calls this directly

Calls 4

rectangleFunction · 0.85
TextboxClass · 0.85
refreshMethod · 0.45
editMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…