title: Redirect command prompt output to a python generated window
body: <p>Developed a script which builds a project using msbuild. I have GUI developed using wxpython which has a button on which when user clicks would build a project using msbuild. Now, i want to open a status window when user click on that button and shows all the output which shows in the command prompt and command prompt should not be displayed i.e,redirecting the command prompt output to the user GUI status window. My build script is,</p>
  
  <pre><code>def build(self,projpath)
      arg1 = '/t:Rebuild'
      arg2 = '/p:Configuration=Release'
      arg3 = '/p:Platform=x86'
      p = subprocess.call([self.msbuild,projpath,arg1,arg2,arg3])
      if p==1:
          return False
      return True
  </code></pre>