diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-10-19 19:36:09 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-10-19 19:36:09 (GMT) |
commit | 8520b947501c585ab3e02b3b74e3a20f9172e3ab (patch) | |
tree | 6c3c0d69f43f20e654ebbea95198ae420ccf35ff /Lib | |
parent | ccab001c3de4be1406867c9dbe8d903a39923062 (diff) | |
download | cpython-8520b947501c585ab3e02b3b74e3a20f9172e3ab.zip cpython-8520b947501c585ab3e02b3b74e3a20f9172e3ab.tar.gz cpython-8520b947501c585ab3e02b3b74e3a20f9172e3ab.tar.bz2 |
Display helpful message; print repr() of return value so the whitespace is clearer
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/curses/textpad.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/curses/textpad.py b/Lib/curses/textpad.py index e23ee02..28d78dd 100644 --- a/Lib/curses/textpad.py +++ b/Lib/curses/textpad.py @@ -163,10 +163,11 @@ if __name__ == '__main__': def test_editbox(stdscr): ncols, nlines = 9, 4 uly, ulx = 15, 20 + stdscr.addstr(uly-2, ulx, "Use Ctrl-G to end editing.") win = curses.newwin(nlines, ncols, uly, ulx) rectangle(stdscr, uly-1, ulx-1, uly + nlines, ulx + ncols) stdscr.refresh() return Textbox(win).edit() str = curses.wrapper(test_editbox) - print str + print 'Contents of text box:', repr(str) |