title: pass terminal output to GUI using wxpython
body: <p>Hi  all i am using python 2.7 and for GUI wxpython, in linux environment. I wants to redirect output from terminal to Message box, how it will happen?
  My code is:</p>
  
  <pre><code> p = subprocess.call(" grep "Wanted" .filename | awk '{print $2}' | cut -c11-20", shell=True)
  </code></pre>
  
  <p>This will give proper output in terminal,but when i call it in message box it shows "0".</p>
  
  <pre><code> wx.MessageBox(" file name:'%s' % (str(p)), "info")
  </code></pre>
  
  <p>how to print those which are displayed in terminal , i am newbie to python world and have less knowledge in python. Searched for answer but couldn't any answer.so dropping here for solution and guidance.
  Thanks in advance</p>