[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Communicating with an event queue
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Communicating with an event queue
- From: Tyler Laing <trinioler@xxxxxxxxx>
- Date: Thu, 18 Jun 2009 10:10:13 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 18 Jun 2009 13:10:21 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=rr7nPwJvicNsSOTsNr57ou3WBreCHTF2lHCu5yO7aPg=; b=GkntBE93Upa5ZB21br+6TMikUikKoMFuBXVkht9fSk6WWxEUvGYgEB5OMfjIl+yzmq 3gIxZZenBsiBMjHQEVz3/ckjzsV2NN7Y0hhza6jKWGozECfvGfNzrTpLXVxvJtnXMdcf uPLcrS5MRHs0acAo5mNSJ2SZfFXJHxB8WrySE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=oOfCE5VGw3AleTpmxu5wtI6G69ttvebUaAmXo4vqpi4XwHP6bhDdvl0ZdovlG485am a5xWKIMgiPXJzUIuGOb6UT9hBAKnor6l8sf8yVhIypdbvJCwmtKQ6+l2VDYTjyV72tEi dipo+t/nXGq3jkCFqWai5SzHBnDOB3duWEykQ=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello all,
For the movie module, I need to be able to communicate with a process programmatically.
The video player in discussion is ffplay(because its the smallest), and it has an internal event loop around the SDL event loop. When I use subprocess.Popen to open up the video player running a file, with the PIPE arguments to all std*'s, only the window spawned responds to commands from the keyboard, indicating that the event loop doesn't listen on stdin.
Is there a way to cause events to be pushed onto the process's internal event loop?
-Tyler
--
Visit my blog at http://oddco.ca/zeroth/zblog