]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/data/echo.py
   4 This is a simple little echo program that is used by the wxProcess 
   5 demo.  It reads lines from stdin and echos them back to stdout, until 
   6 there is an EOF on stdin. 
   8 Enter text in the field below to send to the stdin of the echo 
   9 process.  Clicking on 'Close Stream' will close the stream in the 
  10 demo, and then echo.py should terminate too... 
  15 sys
.stdout
.write( __doc__
) 
  18 line 
= sys
.stdin
.readline() 
  21     sys
.stdout
.write('\nYou typed "%s"\n' % line
) 
  22     line 
= sys
.stdin
.readline() 
  25 sys
.stdout
.write('\nExiting...\n')