]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/data/echo.py
fixed array tests compilation and a bug in obj array test
[wxWidgets.git] / wxPython / demo / data / echo.py
CommitLineData
c368d904
RD
1
2
3"""
4This is a simple little echo program that is used by the wxProcess
5demo. It reads lines from stdin and echos them back to stdout, until
6there is an EOF on stdin.
7
8Enter text in the field below to send to the stdin of the echo
9process. Clicking on 'Close Stream' will close the stream in the
10demo, and then echo.py should terminate too...
11"""
12
13import sys
14
15sys.stdout.write( __doc__)
16sys.stdout.flush()
17
18line = sys.stdin.readline()
19while line:
20 line = line[:-1]
21 sys.stdout.write('\nYou typed "%s"\n' % line)
c368d904
RD
22 line = sys.stdin.readline()
23
24
25sys.stdout.write('\nExiting...\n')