]> granicus.if.org Git - python/commitdiff
Display helpful message; print repr() of return value so the whitespace is clearer
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 19 Oct 2004 19:36:09 +0000 (19:36 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 19 Oct 2004 19:36:09 +0000 (19:36 +0000)
Lib/curses/textpad.py

index e23ee02b96612ac80513f4bba212132b41451486..28d78dd5cd382cae86f8b0b94b6820555a800681 100644 (file)
@@ -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)