[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] placing a running program's output on a surface
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] placing a running program's output on a surface
- From: "René Dudfield" <renesd@xxxxxxxxx>
- Date: Mon, 20 Oct 2008 10:39:29 +1100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 19 Oct 2008 19:39:33 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=2q5ou88MqOxCO8Co2r2sdS4NmKm8pPQWt7JzJLj6KhQ=; b=QCeA1Z0c/KNEiiL0FAfDyTaHAO4Lq7qCzMuNIpG1qxnJrp+ADJDywuP5fblYcaFsLz RETO3nS+G+25aaW5uaK347d0hfmLHHpv8wFMU45CrJzbn18U23/3o9mz83t6ToC8gq5X WEFSSnPAyNz8phapW3zoWOdy3s70s/V6jqzWE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RTPrVoaIgWDnfgT5kII8/NxXwnpcSdvLPdoHVjLJpDEahGOq8hjN1Mywyl7MNU8OPB EJ5cURed5bKO921JMS4ZvvTVrmJTfYCqthj+iC9/VOzMbMMF8N6zQRKfcqxkZ3eQ1oR0 7NU0fI+BvyDbndnRY/z17LYzi1YHi2TswumXw=
- In-reply-to: <f495db580810181133s2350621cu65d59a17a7b2b0e9@xxxxxxxxxxxxxx>
- References: <f495db580810181133s2350621cu65d59a17a7b2b0e9@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
Look at the window ID stuff.
You can make SDL use a different window with SDL_WINDOWID.
To get the window id of an SDL window look in the pygame.display module.
With this method, you can get eg, mplayer to play in an SDL window.
cheers,
On Sun, Oct 19, 2008 at 5:33 AM, Knapp <magick.crow@xxxxxxxxx> 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?
>
> --
> Douglas E Knapp
>
> http://sf-journey-creations.wikispot.org/Front_Page