[pygtk] Running a CLI program

Vláďa vladovi at atlas.cz
Mon Feb 11 07:13:52 WST 2008


Hello,

I'm working on a multimedia converter. I plan to use CLI encoders (lame, 
x264, xvid_encraw etc.)

But I don't know hot to run these programs effectively from PyGTK. I 
need it to run on Windows at least.

I don't know hot to do following things:
1) Run a CLI application without displaying it's shell output (make it 
hidden).
2) Get the encoder's text output in a 100ms interval to update 
progressbar in my app.

I could also explain it as forwarding console output to a 
variable/object. I hope it is clear what I'm trying to do.

Is this possible at all in PyGTK? If yes, how would I do it? Thanks a lot.

Vlada


More information about the pygtk mailing list