MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / test_editbox

Function test_editbox

tools/python-3.11.9-amd64/Lib/curses/textpad.py:191–198  ·  view source on GitHub ↗
(stdscr)

Source from the content-addressed store, hash-verified

189
190if __name__ == '__main__':
191 def test_editbox(stdscr):
192 ncols, nlines = 9, 4
193 uly, ulx = 15, 20
194 stdscr.addstr(uly-2, ulx, "Use Ctrl-G to end editing.")
195 win = curses.newwin(nlines, ncols, uly, ulx)
196 rectangle(stdscr, uly-1, ulx-1, uly + nlines, ulx + ncols)
197 stdscr.refresh()
198 return Textbox(win).edit()
199
200 str = curses.wrapper(test_editbox)
201 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