summaryrefslogtreecommitdiff
path: root/Lib/curses
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-10-19 19:36:09 +0000
committerAndrew M. Kuchling <amk@amk.ca>2004-10-19 19:36:09 +0000
commit406acb3d42d60e8b2d2f6a7de430a6d52901ecc6 (patch)
treecf0a954e9cbc76bcd11ea82a1322b99649079f68 /Lib/curses
parentbaee1b04052513f60536c13d944c5759a1573cce (diff)
downloadcpython-406acb3d42d60e8b2d2f6a7de430a6d52901ecc6.tar.gz
Display helpful message; print repr() of return value so the whitespace is clearer
Diffstat (limited to 'Lib/curses')
-rw-r--r--Lib/curses/textpad.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/curses/textpad.py b/Lib/curses/textpad.py
index e23ee02b96..28d78dd5cd 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)