]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/runner.py
1 from wxPython
.wx
import *
4 class WaitingProcess(wxProcess
):
6 wxProcess
.__init
__(self
, None)
7 self
.terminated
= false
8 def OnTerminate(self
, pid
, status
):
10 self
.terminated
= true
12 while not self
.terminated
:
13 stream
= self
.GetInputStream()
15 sys
.stdout
.write(stream
.read())
16 stream
= self
.GetErrorStream()
18 sys
.stderr
.write(stream
.read())
22 #raw_input("ready...")
24 process
= WaitingProcess()
26 pid
= wxExecute('python -u wxFrame1.py', false
, process
)
29 wxExecute('python -u wxFrame1.py')