[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] placing a running program's output on a surface



>> Does anyone know if there is a way to get the output of a linux
>> program onto a surface? For example, having Firefox run on a square
>> that you could move around because it is a pygame surface?
>>

Well... anything's possible, right (Fred Brooks says programmers are
optimists...)

Since you're asking about linux, I suppose you "could" lauch the app
from the command line and redirect any standard output to a text file,
whose contents you could periodically read into a string, which could
then be dumped onto a surface.

You "might" also be able to launch your linux program from within your
pythong script using popen and capture any output from that into a
string...

Of course... depending on what you want to do, your mileage may vary.


-- 
brad [bradmontgomery.net]