Re: subprocess.Popen() redirecting to TKinter or WXPython textwidget???

2005-01-27 Thread paul koelle
Ivo Woltring wrote: The output of mencoder is not readable with readlines (i tried it) because after the initial informational lines You don't get lines anymore (you get a linefeed but no newline) The prints are all on the same line (like a status line) something like Pos: 3,1s 96f ( 0%)

Re: subprocess.Popen() redirecting to TKinter or WXPython textwidget???

2005-01-27 Thread Jeff Shannon
Ivo Woltring wrote: The output of mencoder is not readable with readlines (i tried it) because after the initial informational lines You don't get lines anymore (you get a linefeed but no newline) The prints are all on the same line (like a status line) something like Pos: 3,1s 96f ( 0%)

subprocess.Popen() redirecting to TKinter or WXPython textwidget???

2005-01-26 Thread Ivo Woltring
Hi Pythoneers, I am trying to make my own gui for mencoder.exe (windows port of the terrific linux mencoder/mplayer) to convert divx to Pocket_PC size. My current app creates a batch script to run the mencoder with the needed params, but now I want to integrate mencoder as a subprocess in my app.

Re: subprocess.Popen() redirecting to TKinter or WXPython textwidget???

2005-01-26 Thread [EMAIL PROTECTED]
Ivo, my initial thought would be, you need to know how much text you will get back from popen. My Python reference has the following example: import os dir = os.popen('ls -al', 'r') while (1): line = dir.readline() if line: print line, else: break that example shows how to capture the process

Re: subprocess.Popen() redirecting to TKinter or WXPython textwidget???

2005-01-26 Thread Ivo Woltring
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ivo, my initial thought would be, you need to know how much text you will get back from popen. My Python reference has the following example: import os dir = os.popen('ls -al', 'r') while (1): line = dir.readline() if line: