Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Christoph Gohlke

Windows Version: Windows 7 Pro 64-bit

Pygame Version: 1.9.2pre

Python Version: 2.6.5 64-bit


Re: [pygame] Making a Movie

2010-04-28 Thread Miriam English

Ian Mallett wrote:
Also, the video quality is reaallly bad (and the whole 800 frames is 
less than 1 MB).  I'd like to trade some space for some quality.  Also, 
changing:

ffmpeg -f image2 -r 60 -i frame%d.png -r 59 video.mpg
to:
ffmpeg -f image2 -r 60 -i frame%d.png -r 59 video.avi
Causes the resultant movie to not work.  What's that about?


I haven't used ffmpeg like this (I mainly use mencoder for encoding 
video -- it comes with mplayer). Perhaps it is compiling a motion-jpeg 
movie. It might be possible to have motion-jpeg inside avi containers, 
but I'm not sure how to best do this with ffmpeg. If using mencoder I'd 
need to specify a video codec if I was going to make an avi movie. 
Here's how I'd make a 59 frames per sec video from a lot of images in 
the current directory using mencoder:
mencoder "mf://*.jpg" -mf fps=59 -o output.avi -ovc lavc -lavcopts 
vcodec=mpeg4


Perhaps you need to do something along those lines with ffmpeg. 
Obviously the switches will be different for ffmpeg. I'm no expert 
though, so studying the docs carefully would be required.


To get around the quality issue, perhaps you need to save the pictures 
at a lower frame rate to give your machine more time. Encoding the video 
at a lower framerate works just fine. In the example I gave you'd just 
substitute the lower fps number to match the frame collection rate. The 
human eye can't really see flickering faster than about 12 frames per 
second. The main reason to use higher rates is that fast motion can look 
jumpy otherwise. Even that can be worked around if you can add 
motion-blur, but that's likely way beyond what is needed or could be 
done here. :)


Cheers,

- Miriam

--
If you don't have any failures then you're not trying hard enough.
 - Dr. Charles Elachi, director of NASA's Jet Propulsion Laboratory
-
Website: http://miriam-english.org
Blog: http://miriam_e.livejournal.com


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Keith Nemitz


Windows XP
Python 2.6
Pygame 1.9.1


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread David Muffley
Windows XP
Python 2.6.4
Pygame 1.9.1


Re: [pygame] Making a Movie

2010-04-28 Thread Ian Mallett
Also, the video quality is reaallly bad (and the whole 800 frames is
less than 1 MB).  I'd like to trade some space for some quality.  Also,
changing:
ffmpeg -f image2 -r 60 -i frame%d.png -r 59 video.mpg
to:
ffmpeg -f image2 -r 60 -i frame%d.png -r 59 video.avi
Causes the resultant movie to not work.  What's that about?
-Ian


Re: [pygame] Move sprite and stop it.

2010-04-28 Thread Dan Ross
I second the basic tutorials so that you can understand how to accomplish 
exactly what you need.

On Apr 28, 2010, at 5:38 PM, B W wrote:

> There are no stupid questions. Unless you work at my company where they seem 
> to abound. :)
> 
> You need to control all the details of sprite position in a loop with 
> increments and conditions. There's no move_to in Pygame, though many of us 
> have coded our own move_to functions we might be willing to share. There are 
> plenty of basic examples on pygame.org (http://www.pygame.org/wiki/tutorials) 
> that illustrate this much better than we can express in emails.
> 
> Not sure what you mean by swapping two sprites. Do you mean to replace a 
> sprite's image?
> 
> Gumm



Re: [pygame] Move sprite and stop it.

2010-04-28 Thread B W
There are no stupid questions. Unless you work at my company where they seem
to abound. :)

You need to control all the details of sprite position in a loop with
increments and conditions. There's no move_to in Pygame, though many of us
have coded our own move_to functions we might be willing to share. There are
plenty of basic examples on pygame.org (http://www.pygame.org/wiki/tutorials)
that illustrate this much better than we can express in emails.

Not sure what you mean by swapping two sprites. Do you mean to replace a
sprite's image?

Gumm


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread B W
Welcome to "me too" hell... =)

WinXP Pro SP 2
WinXP Home SP 2

Python 2.6 (and side-by 2.5.4, in case someone forces me to use it some day)
Pygame 1.9.1

Gumm


Re: [pygame] Running Python 2.5 alongside 2.6

2010-04-28 Thread B W
Actually, the outcome I got from that previous thread is that for a few
significant reasons 2.5.4 is still the "best" choice for Windows:

1. MSVC++ runtime availability on target systems, and library distribution
constraints.
2. Packaging readiness (although I've been able to use pygame.org's py2exe
recipe fine with Python 2.6).
3. The largest code base.

And maybe other reasons you'll have to discover and weigh for yourself. So
if leaving that note up saves a lot of new folk from pain and agony, I'm all
for it. When I was a day-old nub I appreciated seeing the tip. I rather
think it needs a small explanation so people who are compelled to look
deeper can understand the why.

My two bits.

Gumm


Re: [pygame] Move sprite and stop it.

2010-04-28 Thread Alkatron

Dan Ross wrote:

Here's an example of what I did to keep a player on the screen:

if key[pygame.K_DOWN]:
player.direction = 'down'
if player.rect.bottom < SCREEN_SIZE[1]:
player.move(0, 5)
else:
pass
elif key[pygame.K_UP]:
player.direction = 'up'
if player.rect.top > 30:
player.move(0, -5)
else:
pass
elif key[pygame.K_RIGHT]:
player.direction = 'right'
if player.rect.right < SCREEN_SIZE[0]:
player.move(5, 0)
else:
pass
elif key[pygame.K_LEFT]:
player.direction = 'left'
if player.rect.left > 0:
player.move(-5, 0)
else:
pass

I would think using a similar method would work to limit movement to a certain 
point.

Dan

  
Thanks Dan is supposed, infact, that i have to make a loop checking 
sprite position while it's moving.but i thought it was a newbie 
solutionso i preferred asking here before.
I thought there was something like in cairo move_to(x,y)...if it was not 
i'll go by the loop


Alkatron




Re: [pygame] Move sprite and stop it.

2010-04-28 Thread Alkatron

Alkatron wrote:

Maybe it's a stupid question...
But i can't find how to move a sprite and stop it at (x,y) without 
collisions.in an empty space.

I don't need step by step instruction
Pointing me to a running example is enough...

Thanks to all

Alkatron




I need also to swap 2 sprites each other.

thanks again


Re: [pygame] Move sprite and stop it.

2010-04-28 Thread Dan Ross
Here's an example of what I did to keep a player on the screen:

if key[pygame.K_DOWN]:
player.direction = 'down'
if player.rect.bottom < SCREEN_SIZE[1]:
player.move(0, 5)
else:
pass
elif key[pygame.K_UP]:
player.direction = 'up'
if player.rect.top > 30:
player.move(0, -5)
else:
pass
elif key[pygame.K_RIGHT]:
player.direction = 'right'
if player.rect.right < SCREEN_SIZE[0]:
player.move(5, 0)
else:
pass
elif key[pygame.K_LEFT]:
player.direction = 'left'
if player.rect.left > 0:
player.move(-5, 0)
else:
pass

I would think using a similar method would work to limit movement to a certain 
point.

Dan


On Apr 28, 2010, at 4:48 PM, Alkatron wrote:

> Maybe it's a stupid question...
> But i can't find how to move a sprite and stop it at (x,y) without 
> collisions.in an empty space.
> I don't need step by step instruction
> Pointing me to a running example is enough...
> 
> Thanks to all
> 
> Alkatron
> 



[pygame] Move sprite and stop it.

2010-04-28 Thread Alkatron

Maybe it's a stupid question...
But i can't find how to move a sprite and stop it at (x,y) without 
collisions.in an empty space.

I don't need step by step instruction
Pointing me to a running example is enough...

Thanks to all

Alkatron



Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Patrick Mullen
windows 7 64bit, 32 bit python 2.6, pygame 1.9.1

Also had python2.5 installed alongside 2.6 for a while, but I can't remember
the last time I ran it. Occasionally I check to see if my programs run in
old versions.


Re: [pygame] pygame.image.save(...)

2010-04-28 Thread Alex Nordlund
Here we just charge extra for the extra *function*.

---
//Alex



On Wed, Apr 28, 2010 at 7:15 PM, Daniel Tousignant-Brodeur
 wrote:
> We're using the 'Code 18' here usually used in the context when you found
> the error and that it is approx. 18 inches in front of the monitor.
> Daniel Tousignant-Brodeur
>
>
> On Wed, Apr 28, 2010 at 11:03 AM, Lee Buckingham 
> wrote:
>>
>> ID ten T errors. =)
>> -Lee-
>>
>> On Wed, Apr 28, 2010 at 7:33 AM, B W  wrote:
>>>
>>>
>>> On Wed, Apr 28, 2010 at 1:31 AM, René Dudfield  wrote:

 On Wed, Apr 28, 2010 at 5:26 AM, Ian Mallett 
 wrote:
>>>
>>>

 > several hundred files every time it tries to save.  Oh well, user
 > error.

>>>

 hehe.

 A place I worked at in the 90's would call an 'user error' an UBD error
 ;)

 Luckily no one ever asked them to explain what this UBD error was.
 Perhaps they wouldn't like to find out it stood for User Brain Dead.

 Definitely not a UBD error in this case though.
>>>
>>> Lol. I never heard that one. We'd say "Problem somewhere between chair
>>> and keyboard."
>>>
>>> Glad you figured it out, Ian.
>>>
>>> Gumm
>>
>
>


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread claudio canepa
Windows Version: Windows XP
 Pygame Version: 1.9.1 and 1.8.1 and 1.7.1
 Python Version: 2.4 and 2.6 (I have both installed)

 Reason : 2.4 for some old libs, pygame old versions for compatibility
checks and run the ocasional gamae that wont work in newer

 --
claxo


Re: [pygame] Making a Movie

2010-04-28 Thread Ian Mallett
On Tue, Apr 27, 2010 at 11:43 PM, Peter Shinners  wrote:

> It may help that SDL has a "wav" audio driver that writes all sound output
> to an uncompressed .wav.
>
How does it work?


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Henrique Nakashima
Windows Version: Windows XP

Pygame Version: 1.9.1

Python Version: 2.6

On Wed, Apr 28, 2010 at 16:37, Stuart Axon

> wrote:

> Windows XP Home, + Windows Vista Home Premium
>
> Pygame 1.9.1
> Python 2.6 32bit
>
> On 28 April 2010 20:22, Luke Paireepinart  wrote:
> > Windows Version: Windows 7 Ultimate 64-bit
> > Pygame Version: 1.9.1
> > Python Version: 2.6.4 32-bit
> >
>


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Stuart Axon
Windows XP Home, + Windows Vista Home Premium

Pygame 1.9.1
Python 2.6 32bit

On 28 April 2010 20:22, Luke Paireepinart  wrote:
> Windows Version: Windows 7 Ultimate 64-bit
> Pygame Version: 1.9.1
> Python Version: 2.6.4 32-bit
>


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Luke Paireepinart
Windows Version: Windows 7 Ultimate 64-bit
Pygame Version: 1.9.1
Python Version: 2.6.4 32-bit


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Jason M. Marshall
Windows Version: Windows XP

Pygame Version: 1.9.2pre

Python Version: 2.5 and 3.1


  

Re: [pygame] informal poll on Windows python version

2010-04-28 Thread DR0ID

Windows Version: Win7 Professional 64bit

Pygame Version: 1.9.1release-svn2575

Python Version: Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 
bit (Intel)] on win32



Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Russell Cumins
Windows Vista Home Premium
I currently have the following installed:

   - Python 2.5.4 with Pygame 1.8.1 < These are the default versions of
   python and pygame that I use.
   - Python 2.6.2 with Pygame 1.9.1
   - Python 3.1 with Pygame 1.9.1

Haven't really done much with Python 3.1.

On 28 April 2010 18:11, Nikhil Murthy  wrote:

> Windows Vista
>
> Pygame 1.9.1
> Python 2.6
>
> On Wed, Apr 28, 2010 at 10:38 PM, David Taylor wrote:
>
>>
>> Windows XP, SP3
>>
>> Pygame 1.9.1
>>
>> Python 2.6, & very happy with it. Will move to 3.1 as soon as all the
>> libraries I use have been ported.
>>
>>
>> > -Original Message-
>> > From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org]
>> On
>> Behalf Of
>> > James Paige
>> > Sent: Wednesday, April 28, 2010 10:02 AM
>> > To: Pygame Mailing List
>> > Subject: [pygame] informal poll on Windows python version
>> >
>> > This is an informal poll to figure out which version of python people
>> > use with pygame on Windows
>> >
>> > Just reply and post your versions in this format
>> > 
>> >
>> > Windows Version: Windows XP
>> >
>> > Pygame Version: 1.9.1
>> >
>> > Python Version: 2.5 and 2.6 (I have both installed)
>> >
>> > Reason (optional): Until recently I thought python 2.5 + was the only
>> > version to work with pygame and py2exe. Recently switched to 2.6 as my
>> > default, but won't removed 2.5 yet until I have tested py2exe on all my
>> > projects.
>> >
>> > ---
>> > James Paige
>>
>>
>>
>


Re: [pygame] pygame.image.save(...)

2010-04-28 Thread Daniel Tousignant-Brodeur
We're using the 'Code 18' here usually used in the context when you found
the error and that it is approx. 18 inches in front of the monitor.

Daniel Tousignant-Brodeur


On Wed, Apr 28, 2010 at 11:03 AM, Lee Buckingham
wrote:

> ID ten T errors. =)
>
> -Lee-
>
>
> On Wed, Apr 28, 2010 at 7:33 AM, B W  wrote:
>
>>
>>
>> On Wed, Apr 28, 2010 at 1:31 AM, René Dudfield  wrote:
>>
>>> On Wed, Apr 28, 2010 at 5:26 AM, Ian Mallett 
>>> wrote:
>>>
>>
>>
>>> > several hundred files every time it tries to save.  Oh well, user
>>> error.
>>>
>>>
>>
>>> hehe.
>>>
>>>
>>> A place I worked at in the 90's would call an 'user error' an UBD error
>>> ;)
>>>
>>> Luckily no one ever asked them to explain what this UBD error was.
>>> Perhaps they wouldn't like to find out it stood for User Brain Dead.
>>>
>>> Definitely not a UBD error in this case though.
>>>
>>
>> Lol. I never heard that one. We'd say "Problem somewhere between chair and
>> keyboard."
>>
>> Glad you figured it out, Ian.
>>
>> Gumm
>>
>
>


Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Nikhil Murthy
Windows Vista
Pygame 1.9.1
Python 2.6

On Wed, Apr 28, 2010 at 10:38 PM, David Taylor wrote:

>
> Windows XP, SP3
>
> Pygame 1.9.1
>
> Python 2.6, & very happy with it. Will move to 3.1 as soon as all the
> libraries I use have been ported.
>
>
> > -Original Message-
> > From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org]
> On
> Behalf Of
> > James Paige
> > Sent: Wednesday, April 28, 2010 10:02 AM
> > To: Pygame Mailing List
> > Subject: [pygame] informal poll on Windows python version
> >
> > This is an informal poll to figure out which version of python people
> > use with pygame on Windows
> >
> > Just reply and post your versions in this format
> > 
> >
> > Windows Version: Windows XP
> >
> > Pygame Version: 1.9.1
> >
> > Python Version: 2.5 and 2.6 (I have both installed)
> >
> > Reason (optional): Until recently I thought python 2.5 + was the only
> > version to work with pygame and py2exe. Recently switched to 2.6 as my
> > default, but won't removed 2.5 yet until I have tested py2exe on all my
> > projects.
> >
> > ---
> > James Paige
>
>
>


RE: [pygame] informal poll on Windows python version

2010-04-28 Thread David Taylor

Windows XP, SP3

Pygame 1.9.1

Python 2.6, & very happy with it. Will move to 3.1 as soon as all the
libraries I use have been ported.


> -Original Message-
> From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org] On
Behalf Of
> James Paige
> Sent: Wednesday, April 28, 2010 10:02 AM
> To: Pygame Mailing List
> Subject: [pygame] informal poll on Windows python version
> 
> This is an informal poll to figure out which version of python people
> use with pygame on Windows
> 
> Just reply and post your versions in this format
> 
> 
> Windows Version: Windows XP
> 
> Pygame Version: 1.9.1
> 
> Python Version: 2.5 and 2.6 (I have both installed)
> 
> Reason (optional): Until recently I thought python 2.5 + was the only
> version to work with pygame and py2exe. Recently switched to 2.6 as my
> default, but won't removed 2.5 yet until I have tested py2exe on all my
> projects.
> 
> ---
> James Paige




Re: [pygame] informal poll on Windows python version

2010-04-28 Thread Ian Mallett
Windows Version: Vista Home Premium
PyGame Version: 1.9.1
Python Version: 2.5.4 (also have 2.6, not designated as my *main* Python).
Ian


[pygame] informal poll on Windows python version

2010-04-28 Thread James Paige
This is an informal poll to figure out which version of python people 
use with pygame on Windows

Just reply and post your versions in this format


Windows Version: Windows XP

Pygame Version: 1.9.1

Python Version: 2.5 and 2.6 (I have both installed)

Reason (optional): Until recently I thought python 2.5 + was the only 
version to work with pygame and py2exe. Recently switched to 2.6 as my 
default, but won't removed 2.5 yet until I have tested py2exe on all my 
projects.

---
James Paige


Re: [pygame] Running Python 2.5 alongside 2.6

2010-04-28 Thread James Paige
Thanks!

I created a rough draft at http://www.pygame.org/wiki/PythonVersions

I would appreciate it if anybody who has personal experience with 
advantages or disadvantages of using certain python versions could add 
them to that page.

I am also curious what versions people actually use on windows, so we 
can actually say which is more popular, rather than speculating. (I'll 
start a separate thread for that)

---
James Paige

On Wed, Apr 28, 2010 at 05:22:18PM +0100, René Dudfield wrote:
>you just go to the url you want to create, then edit it.
> 
>cu.
> 
>On Wed, Apr 28, 2010 at 5:00 PM, Khono Hackland
> wrote:
> 
>  I believe this is the link to page creation:
>  http://www.pygame.org/wiki/CreatePage
> 
>  I don't see any fields for entering the title though.
>  On 28 April 2010 11:39, James Paige  wrote:
>  > On Tue, Apr 27, 2010 at 10:18:34PM -0300, claudio canepa wrote:
>  >>On Tue, Apr 27, 2010 at 10:13 PM, Julian Marchant
>  
>  >>wrote:
>  >>
>  >>  The pygame download page's message that "python 2.5 is the best
>  for
>  >>  Windows" probably made him think that Pygame was for Python 2.5.
>  >>
>  >>That was a very old sugestion.
>  >>I run pygame with python 2.6, and a lot of people in the pyweek
>  event,
>  >>with diferent operating systems the same.
>  >>There are no problems.
>  >>In the download select the the file for your operating system
>  marked with
>  >>the py2.6
>  >
>  > Yeah, a lot of people have been confused by that. Can someone who has
>  > access permissions to edit http://www.pygame.org/download.shtml please
>  > remove it?
>  >
>  > I suggest adding a link on that page like "How do I decide which
>  python
>  > version to use with pygame?" which could point to a wiki page which
>  > could outline the pros and cons of each python version as it applies
>  to
>  > pygame.
>  >
>  > ... I just tried to create a wiki page for that purpose, but I can't
>  > figure out how to create new pages, only edit existing ones :(
>  >
>  > ---
>  > James Paige
>  >


Re: [pygame] Running Python 2.5 alongside 2.6

2010-04-28 Thread René Dudfield
you just go to the url you want to create, then edit it.

cu.

On Wed, Apr 28, 2010 at 5:00 PM, Khono Hackland
wrote:

> I believe this is the link to page creation:
> http://www.pygame.org/wiki/CreatePage
>
> I don't see any fields for entering the title though.
>
> On 28 April 2010 11:39, James Paige  wrote:
> > On Tue, Apr 27, 2010 at 10:18:34PM -0300, claudio canepa wrote:
> >>On Tue, Apr 27, 2010 at 10:13 PM, Julian Marchant 
> >>wrote:
> >>
> >>  The pygame download page's message that "python 2.5 is the best for
> >>  Windows" probably made him think that Pygame was for Python 2.5.
> >>
> >>That was a very old sugestion.
> >>I run pygame with python 2.6, and a lot of people in the pyweek
> event,
> >>with diferent operating systems the same.
> >>There are no problems.
> >>In the download select the the file for your operating system marked
> with
> >>the py2.6
> >
> > Yeah, a lot of people have been confused by that. Can someone who has
> > access permissions to edit http://www.pygame.org/download.shtml please
> > remove it?
> >
> > I suggest adding a link on that page like "How do I decide which python
> > version to use with pygame?" which could point to a wiki page which
> > could outline the pros and cons of each python version as it applies to
> > pygame.
> >
> > ... I just tried to create a wiki page for that purpose, but I can't
> > figure out how to create new pages, only edit existing ones :(
> >
> > ---
> > James Paige
> >
>


Re: [pygame] Running Python 2.5 alongside 2.6

2010-04-28 Thread Khono Hackland
I believe this is the link to page creation:
http://www.pygame.org/wiki/CreatePage

I don't see any fields for entering the title though.

On 28 April 2010 11:39, James Paige  wrote:
> On Tue, Apr 27, 2010 at 10:18:34PM -0300, claudio canepa wrote:
>>    On Tue, Apr 27, 2010 at 10:13 PM, Julian Marchant 
>>    wrote:
>>
>>      The pygame download page's message that "python 2.5 is the best for
>>      Windows" probably made him think that Pygame was for Python 2.5.
>>
>>    That was a very old sugestion.
>>    I run pygame with python 2.6, and a lot of people in the pyweek event,
>>    with diferent operating systems the same.
>>    There are no problems.
>>    In the download select the the file for your operating system marked with
>>    the py2.6
>
> Yeah, a lot of people have been confused by that. Can someone who has
> access permissions to edit http://www.pygame.org/download.shtml please
> remove it?
>
> I suggest adding a link on that page like "How do I decide which python
> version to use with pygame?" which could point to a wiki page which
> could outline the pros and cons of each python version as it applies to
> pygame.
>
> ... I just tried to create a wiki page for that purpose, but I can't
> figure out how to create new pages, only edit existing ones :(
>
> ---
> James Paige
>


Re: [pygame] Running Python 2.5 alongside 2.6

2010-04-28 Thread James Paige
On Tue, Apr 27, 2010 at 10:18:34PM -0300, claudio canepa wrote:
>On Tue, Apr 27, 2010 at 10:13 PM, Julian Marchant 
>wrote:
> 
>  The pygame download page's message that "python 2.5 is the best for
>  Windows" probably made him think that Pygame was for Python 2.5.
> 
>That was a very old sugestion.
>I run pygame with python 2.6, and a lot of people in the pyweek event,
>with diferent operating systems the same.
>There are no problems.
>In the download select the the file for your operating system marked with
>the py2.6

Yeah, a lot of people have been confused by that. Can someone who has 
access permissions to edit http://www.pygame.org/download.shtml please 
remove it?

I suggest adding a link on that page like "How do I decide which python 
version to use with pygame?" which could point to a wiki page which 
could outline the pros and cons of each python version as it applies to 
pygame.

... I just tried to create a wiki page for that purpose, but I can't 
figure out how to create new pages, only edit existing ones :(

---
James Paige


Re: [pygame] pygame.image.save(...)

2010-04-28 Thread Lee Buckingham
ID ten T errors. =)

-Lee-

On Wed, Apr 28, 2010 at 7:33 AM, B W  wrote:

>
>
> On Wed, Apr 28, 2010 at 1:31 AM, René Dudfield  wrote:
>
>> On Wed, Apr 28, 2010 at 5:26 AM, Ian Mallett 
>> wrote:
>>
>
>
>> > several hundred files every time it tries to save.  Oh well, user error.
>>
>>
>
>> hehe.
>>
>>
>> A place I worked at in the 90's would call an 'user error' an UBD error ;)
>>
>> Luckily no one ever asked them to explain what this UBD error was.
>> Perhaps they wouldn't like to find out it stood for User Brain Dead.
>>
>> Definitely not a UBD error in this case though.
>>
>
> Lol. I never heard that one. We'd say "Problem somewhere between chair and
> keyboard."
>
> Glad you figured it out, Ian.
>
> Gumm
>


Re: [pygame] pygame.image.save(...)

2010-04-28 Thread B W
On Wed, Apr 28, 2010 at 1:31 AM, René Dudfield  wrote:

> On Wed, Apr 28, 2010 at 5:26 AM, Ian Mallett  wrote:
>


> > several hundred files every time it tries to save.  Oh well, user error.
>
>

> hehe.
>
> A place I worked at in the 90's would call an 'user error' an UBD error ;)
>
> Luckily no one ever asked them to explain what this UBD error was.
> Perhaps they wouldn't like to find out it stood for User Brain Dead.
>
> Definitely not a UBD error in this case though.
>

Lol. I never heard that one. We'd say "Problem somewhere between chair and
keyboard."

Glad you figured it out, Ian.

Gumm


Re: [pygame] Running Python 2.5 alongside 2.6

2010-04-28 Thread B W
Very recent discussion on the Python 2.5 vs 2.6 topic:
http://www.mail-archive.com/pygame-users@seul.org/msg13877.html

If you want to run two Python versions, you can do so by managing some
environment variables. Here's what I do in Cygwin:

PATH="append search path for Python executables and scripts"
PYTHON="directory where python or python.exe resides"
PYTHONPATH="search path for Python packages and modules"

Here is an example from my Cygwin environment, and it is easy to script the
switch:

PATH=$PATH:/cygdrive/c/Python26:/cygdrive/c/Python26/Scripts
PYTHON=/cygdrive/c/python26
PYTHONPATH=/cygdrive/c/Python26/DLLs:/cygdrive/c/Python26/Lib:/cygdrive/c/Python26/Lib/site-packages:lib
export PATH PYTHON PYTHONPATH

Good luck in Winders. It's a bit cumbersome to manage a switch, but it can
be done.

Gumm


Re: [pygame] Making a Movie

2010-04-28 Thread René Dudfield
hi ya,

if you have spare cpu/memory bandwidth, then screen casting software
may be easier.

There's some good free ones here:
   http://en.wikipedia.org/wiki/List_of_screencasting_software

cu.

On Wed, Apr 28, 2010 at 2:00 AM, Ian Mallett  wrote:
> Hi,
>
> So, I'm trying to make a movie from frames directly taken from an OpenGL
> program I wrote.  The program also has sound, which I want to record.  I've
> already written code that saves every frame.  I have no idea what to do with
> the sound; as I've never made a movie with sound, nor know how to get the
> current output of sound from the mixer (if that's possible).
>
> This movie should be recorded as a file that can then be played back by
> pygame (sound and all).
>
> I would also not like to use a screencapture/recording software; I want the
> sound and image quality to be perfect (not recorded again).
>
> Ian
>


Re: [pygame] pygame.image.save(...)

2010-04-28 Thread René Dudfield
On Wed, Apr 28, 2010 at 5:26 AM, Ian Mallett  wrote:
> Huh, well I found a way to monitor RAM in Python.  Memory usage is not
> spiking up.
>
> I found the problem though!  The screenshot code was trying to open all the
> previous paths (so it wouldn't overwrite any).  When I keep track of it via
> a variable, it works much better, because it doesn't have to try to open
> several hundred files every time it tries to save.  Oh well, user error.
>
> Thanks!
> Ian
>

hehe.

A place I worked at in the 90's would call an 'user error' an UBD error ;)

Luckily no one ever asked them to explain what this UBD error was.
Perhaps they wouldn't like to find out it stood for User Brain Dead.

Definitely not a UBD error in this case though.