[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] PyOpenGL and win32screensaver
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] PyOpenGL and win32screensaver
- From: Luke Paireepinart <rabidpoobear@xxxxxxxxx>
- Date: Fri, 22 Dec 2006 02:35:22 -0600
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Fri, 22 Dec 2006 03:35:36 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=TdGwQ11zXq1b778Jv7vRN+pVOWQbuahMoEg60V0PFEjiCcotvwyJc+8Pvnysjqo4ckH2KGUdWAMtL3Vr9J4bYcavvXWnxMRxdqKTAD9OGqRWC8uah/inHw7OsBynSnMUYflkNZedXz/yJDK7Msa2aThycZIKu8FF+YLJAWv1R1w=
- In-reply-to: <458A8021.10501@seehart.com>
- References: <458A8021.10501@seehart.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
What kind of side effect should I expect from the OPENGL flag? Any
ideas/workarounds?
Happy Everything,
Thanks, Ken!
Okay, you asked for a workaround :)
Don't use win32screensaver!
If you just create a py2exe of your program, rename it to .scr, and put
it in the right folder, it will work as the screensaver.
Now, you won't get to create a cool demo in the preview window.
Whenever your program's run, Windows will pass it arguments. SO when
it's passed the -p, or whatever the 'preview' argument is,
just do nothing.
This should eliminate all conflicts, and you don't have to do any weird
hardcoding of values!
However, as I said, no preview. Also, it doesn't pack everything into a
single EXE.
Well, that's why it's called a workaround!
By the way, does win32screensaver create a single file? I don't really
want to take the time to check, so if you could just answer that for me
it would be nice.
Also, remember you have to handle the inputs yourself.
I don't know if win32 screensaver exits on mousemovements or whatever,
but your program won't if you just py2exe it.
You'll have to check for mousemotion events, or keypresses, and whatnot.
Anyway, HTH,
-Luke