[Python-checkins] python/dist/src/Lib/curses textpad.py,1.10,1.11

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Tue Oct 19 21:36:12 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/curses
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1381
Modified Files:
	textpad.py 
Log Message:
Display helpful message; print repr() of return value so the whitespace is clearer
Index: textpad.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/curses/textpad.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- textpad.py	19 Oct 2004 19:29:40 -0000	1.10
+++ textpad.py	19 Oct 2004 19:36:09 -0000	1.11
@@ -163,10 +163,11 @@
 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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /