Basically the short answer to all of this is:
NO
You would have write a window manager (or at least most of one) from
scratch in SDL. I assure you that if you are asking how things like
that work, you aren't capable of making one in a useful amount of time.
--Noah
On Oct 19, 2008, at 1:04 PM, Michael George wrote:
You might be able to do it using the composite extension. With
compositing, windows are rendered into textures in video memory, and
then you can use these textures with opengl to actually build the
display. You might be able to hack it up so that you can use these
textures from pyopengl. I suspect you'd have to do some potentially
hairy xlib/opengl/python hacking in C to get it working.
--Mike
Lenard Lindstrom wrote:
Brad Montgomery wrote:
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.
Sure, it all comes down to inventing a new GUI to run on top of an
existing GUI/windowing system. Think Smalltalk. A console on a
modern graphics based operating system is just a text widget in a
window.