Added wrappers for wxInputStream and the wxFileSystem family of
classes, contributed by Joerg Baumann Added wxProcess, including ability to get streams for the child process's stdio. Updated the demo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
25
wxPython/demo/data/echo.py
Normal file
25
wxPython/demo/data/echo.py
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
"""
|
||||
This is a simple little echo program that is used by the wxProcess
|
||||
demo. It reads lines from stdin and echos them back to stdout, until
|
||||
there is an EOF on stdin.
|
||||
|
||||
Enter text in the field below to send to the stdin of the echo
|
||||
process. Clicking on 'Close Stream' will close the stream in the
|
||||
demo, and then echo.py should terminate too...
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
sys.stdout.write( __doc__)
|
||||
sys.stdout.flush()
|
||||
|
||||
line = sys.stdin.readline()
|
||||
while line:
|
||||
line = line[:-1]
|
||||
sys.stdout.write('\nYou typed "%s"\n' % line)
|
||||
sys.stdout.flush()
|
||||
line = sys.stdin.readline()
|
||||
|
||||
|
Reference in New Issue
Block a user