[pygame] Clock.tick() freeze.

2008-12-02 Thread Peter Gebauer
Hi! I've tried googling, but came up with nothing. I'm using the Debian testing (AMD64) version of pygame (1.7.1release-4.2), sometimes when Clock.tick() is called the entire Python process will hang, only SIGKILL will actually stop it. Anybody recognize this bug? Is it fixed in later versions?

Re: [pygame] Getting input from command line

2008-12-02 Thread Fiona Burrows
Michael wrote: On Monday 01 December 2008 12:57:15 Fiona Burrows wrote: I know this isn't directly related to PyGame but I figured there were worse places to ask a question like this This page is your friend: http://openbookproject.net/py4fun/lode/lode.html#auto2 In fact the entire

Re: [pygame] Getting input from command line

2008-12-02 Thread LuNan Sheng
Maybe this package would be helpful: http://effbot.org/downloads/#console

Re: [pygame] Getting input from command line

2008-12-02 Thread Lenard Lindstrom
Fiona Burrows wrote: Michael wrote: On Monday 01 December 2008 12:57:15 Fiona Burrows wrote: I know this isn't directly related to PyGame but I figured there were worse places to ask a question like this This page is your friend: http://openbookproject.net/py4fun/lode/lode.html#aut

RE: [pygame] Getting input from command line

2008-12-02 Thread Fiona Burrows
> The msvcrt module has Windows console I/O routines, including kbhit() > (Section 36.2.2 in the Python 2.5 docs). I don't know of any platform > independent console routines in Python. > > -- > Lenard Lindstrom > <[EMAIL PROTECTED]> Yeah it's a shame. For all who replied. Thanks a lot! Ho

[pygame] extending mask module?

2008-12-02 Thread Michael George
Greetings, I have some extensions to the mask module for my game, and I'm trying to figure out how to build/package them. For the sake of getting it working I've just hacked them into the pygame source and been building a custom pygame, but obviously that's not a good solution. However as I

Re: [pygame] extending mask module?

2008-12-02 Thread René Dudfield
Hi, Maybe submit your extensions for inclusion? That might be the easiest. What extensions are they? It'd be nice for any fix ups to mask... it's got a few issues. However making a C API for it is not a priority at the moment... Marcus has done some work on it for pgreloaded (see a branch in sv

Re: [pygame] Clock.tick() freeze.

2008-12-02 Thread René Dudfield
hi, I'd suggest trying out a newer pygame... there were a few 64bit fixes made since 1.7.1 cu, On Tue, Dec 2, 2008 at 9:40 PM, Peter Gebauer <[EMAIL PROTECTED]> wrote: > Hi! > > I've tried googling, but came up with nothing. I'm using the Debian testing > (AMD64) version of pygame (1.7.1releas

Re: [pygame] extending mask module?

2008-12-02 Thread Michael George
One of them is the convolution code that I actually posted a while back but hasn't been checked in. Another is a method to find the closest position to a given one with the corresponding bit unset. That seems much less generally useful. I'm also working on some more complicated code to suppo

Re: [pygame] extending mask module?

2008-12-02 Thread Lenard Lindstrom
Hi Michael, bitmask.c is statically linked to mask.c as an object file. On Windows the distutils package ensures only the initmask function is exported as an entry point into the mask.pyd DLL. Unix dynamic libraries may be more liberal as to what is exported, but Python will only directly call

Re: [pygame] extending mask module?

2008-12-02 Thread Nirav Patel
I've still got checking in convolution on my to do list. I've been busy with school, but winter break is coming up soon. The mask module is kind of strange because the Python additions were all after the fact. bitmask.c and bitmask.h were/are a separate C library that is just included in Pygame.

Re: [pygame] extending mask module?

2008-12-02 Thread Michael George
The part I was and am still a bit confused about is name clashes. If I understand correctly, python extension modules are supposed to only export the initmodule method in order to avoid name clashes, which is why the docs say everything should be static. But if bitmask is linked in to the mod

Re: [pygame] extending mask module?

2008-12-02 Thread Michael George
Nirav Patel wrote: I've still got checking in convolution on my to do list. I've been busy with school, but winter break is coming up soon. Sorry, I didn't mean to be a pest. I thought it had been lost in the shuffle :) --Mike

Re: [pygame] extending mask module?

2008-12-02 Thread René Dudfield
ps. are there tests and docs for the new function too? On Wed, Dec 3, 2008 at 2:51 PM, Michael George <[EMAIL PROTECTED]> wrote: > Nirav Patel wrote: >> >> I've still got checking in convolution on my to do list. I've been >> busy with school, but winter break is coming up soon. >> > > Sorry, I

Re: [pygame] extending mask module?

2008-12-02 Thread Michael George
Nirav Patel wrote: The mask module is kind of strange because the Python additions were all after the fact. bitmask.c and bitmask.h were/are a separate C library that is just included in Pygame. That explains the exported functions in bitmask. I'm not clear on exactly what you wanted to do, b

Re: [pygame] extending mask module?

2008-12-02 Thread Michael George
Yep :) I heeded your advice. --Mike René Dudfield wrote: ps. are there tests and docs for the new function too? On Wed, Dec 3, 2008 at 2:51 PM, Michael George <[EMAIL PROTECTED]> wrote: Nirav Patel wrote: I've still got checking in convolution on my to do list. I've been busy wit

Re: [pygame] extending mask module?

2008-12-02 Thread René Dudfield
brilliant :) On Wed, Dec 3, 2008 at 2:54 PM, Michael George <[EMAIL PROTECTED]> wrote: > Yep :) I heeded your advice. > > --Mike > > René Dudfield wrote: >> >> ps. are there tests and docs for the new function too? >> >> >> On Wed, Dec 3, 2008 at 2:51 PM, Michael George <[EMAIL PROTECTED]> >> wr