[pygame] Question about timing

2008-05-12 Thread Francesco Martino
Sorry if my question is silly, but maybe I didn't catch very much some question about pygame.time module. I am writing an application which needs to very accurate about timing; it displays sequentially some images, each one of them remaining on the screen for a constant time T. This is a part of

Re: [pygame] Question about timing

2008-05-12 Thread Paul Pigg
Francesco, The output looks like an integer to me - an integer representing the millisecond count. Python agrees it is an integer: type(clock.get_time()) type 'int' Also, I'm assuming your indentation is off on the second clock.get_time() call. The main problem I see other than that is that

Re: win9x testers wanted. Re: [pygame] C file pointers and file loading

2008-05-12 Thread Lenard Lindstrom
Another update. I built Pygame for Python 2.6 on Windows. It used the Visual C run-time and passes most of the tests. Where it fails is with imageext. libpng13.dll uses function gmtime which is curiously missing from msvcr90.dll. I wonder where it went. Yet it is present in the MinGW export

Re: [pygame] Question about timing

2008-05-12 Thread Paul Pigg
Francesco, Heh, I glanced over the background to your question before answering it, but I do believe Ian is right - clock.tick() is great for keeping a game thread from running too fast, but it is not very accurate - the value passed to Clock.tick() is the max framerate, and it can often dip down

Re: [pygame] Question about timing

2008-05-12 Thread Francesco Martino
I always forget brackets... maybe this is the time I learn to remember to use them. Actually, I am using time.wait() for images displaying time interval: I just wrote the simple code I put in my message to see how much time it takes on my system to blit and update images. My final application is

[pygame] py2exe

2008-05-12 Thread OsKaR
Hi all! Well I'm some relatively new on python and pygame but I've been working on a simple tanks game, but today I've tried to make an exe file with py2exe and everything seems ok but when I try to execute my .exe file appears a black window and then nothing, It simply closes and that's all.

Re: [pygame] py2exe

2008-05-12 Thread PyMike
Hi OsKaR First make sure there's no errors in the program. Check to see if there is a file called your_program's_name.exe.txt that has an error log in it. Another possible problem is that the exe is compiling it funny or something. Can you post your py2exe script? I've made a py2exe script

Re: [pygame] py2exe

2008-05-12 Thread OsKaR
Eeehm I think I've solved the problem, at least I've found the way to execute it. I've used your script to make the executable file before, but when I tried to see the help with my_program.exe --help It has been open and ran perfectly. I have to take a look at this but while I will using this

[pygame] Re: pygame 1.8.0 problems

2008-05-12 Thread illume
hello, is there anyway we can fix this in the installer? Or maybe in the new surfarray somehow? cheers, On May 11, 5:53 am, Lenard Lindstrom [EMAIL PROTECTED] wrote: Jake b wrote: Hi. I'm trying to get ocempgui working, so I downloaded the newest version that removes numeric dependency.