Hi all,<br><br>I've been messing with this for a couple hours now but can't make it work.  Basically I have a Tkinter GUI that creates a child process via subprocess.Popen, and I would like to capture the child process's output to display it in a Text widget in the GUI.  Relevant snippets:<br>

<br>def click_start: #launch from clicking a button in the gui<br>   ...<br>   self.apppipe = Popen(cmdString, shell=True, stdout=PIPE, stderr=PIPE)<br>   self.master.after(200, self.readAppStdout)<br>   ...<br><br>def readAppStdout(self):<br>

   readers, writers, exceptionals = select.select( [self.apppipe.stdout], [], [], 0.001)<br>   if readers != []:<br>      pipetext = self.apppipe.stdout.readline()<br>      self.appoutput.insert(END, pipetext) #self.appoutput is the Text widget<br>

<br>   (same for apppipe.stderr)<br>   self.master.after(200, self.readAppStdout)<br><br>I don't ever get any output in my window, even though I've waited long enough that the application would otherwise have printed to the console (based on its graphical outputs).  Any suggestions for what I'm doing wrong?<br>

<br>-dan<br>