Re: [pygame] Python IDE for windoz

2009-10-07 Thread don
Hi, I like eric4: http://eric-ide.python-projects.org/ You will also need to install some other libraries like Qt and PyQt4 but they are all free. yours //Lorenz On Tue, 06 Oct 2009 20:04:43 -0400, pierrelafran...@sympatico.ca pierrelafran...@sympatico.ca wrote: Hi I have administrator

Re: [pygame] 10 bits per color

2009-10-07 Thread David Gowers
On Fri, Oct 2, 2009 at 12:20 PM, Greg Ewing greg.ew...@canterbury.ac.nz wrote: James Paige wrote: So by that measure, average human eyes should not be able to tell the difference between RGB888 and RGB101010 There could conceivably be an advantage in terms of dynamic range to using more

Re: [pygame] Depth Screenshot

2009-10-07 Thread Brian Fisher
On Tue, Oct 6, 2009 at 7:43 PM, Ian Mallett geometr...@gmail.com wrote: The issue is that in the case of depth, data is of length x*y. In the case of RGB color, it is 3*rect[2]*rect[3]. In the case of RGBA, it is 4*rect[2]*rect[3]. PyGame doesn't know how to convert it (there's no

Re: [pygame] Depth Screenshot

2009-10-07 Thread René Dudfield
hi, I guess you could try converting it into an 8bit surface, and then saving that. You could do it with surf array fairly quickly I think... something like: red = rgb_im[:,:,0:1] surf_red = pygame.image.fromstring(red, size, 'P') pygame.image.save(surf_red, red.png) You might need

[pygame] Fwd: [SDL] SDL 1.2.14 PRE-RELEASE!

2009-10-07 Thread René Dudfield
hi, a new SDL release is coming very shortly. So if you've got bugs/patches that need to make it in, please send them through. It's likely this will be one of the last 1.2.x releases. cu, -- Forwarded message -- From: Sam Lantinga ... Here is the PRE-RELEASE version of SDL

[pygame] Fwd: [SDL] SDL_image, SDL_mixer, SDL_ttf PRE-RELEASE!

2009-10-07 Thread René Dudfield
hi, ... and same for the SDL_image SDL_mixer and SDL_ttf libraries. -- Forwarded message -- From: Sam Lantinga ... Date: Wed, Oct 7, 2009 at 9:45 AM Subject: [SDL] SDL_image, SDL_mixer, SDL_ttf PRE-RELEASE! To: s...@libsdl.org Please thoroughly test these PRE-RELEASE

[pygame] Whats wrong in events?

2009-10-07 Thread inigo delgado
Hi: I have a problem capturing K_SPACE keydown events with pygame. The code is: dirty test code def OnEvent(self, event): if event.type == pygame.QUIT: self._running = False else: self.container.objects[0].doEvent(event) more dirty test

Re: [pygame] Python IDE for windoz

2009-10-07 Thread Kevin
I enjoyed SPE when I used it. http://sourceforge.net/projects/spe/ I just use gVim when I'm on Windows now, though. On Wed, Oct 7, 2009 at 12:14 AM, d...@amberfisharts.com wrote: Hi, I like eric4: http://eric-ide.python-projects.org/ You will also need to install some other libraries like

[pygame] On walking animations...

2009-10-07 Thread Guy Anderson
I was wondering how one could do walking animations with sprites in pygame. I know that it has been done before, and it probably involves utilizing the key.pressed function in the Vector2 module, where when you press a key the command retrieves a series of images for the sprite based on certain

Re: [pygame] Whats wrong in events?

2009-10-07 Thread DR0ID
http://www.sjbaker.org/wiki/index.php?title=Keyboards_Are_Evil ~DR0ID inigo delgado schrieb: Hi: I have a problem capturing K_SPACE keydown events with pygame. The code is: dirty test code def OnEvent(self, event): if event.type == pygame.QUIT:

Re: [pygame] On walking animations...

2009-10-07 Thread Kris Schnee
On Wed, 7 Oct 2009 15:27:08 -0500, Guy Anderson guy.a.ander...@gmail.com wrote: I was wondering how one could do walking animations with sprites in pygame. I know that it has been done before, and it probably involves utilizing the key.pressed function in the Vector2 module, where when you

Re: [pygame] 10 bits per color

2009-10-07 Thread Greg Ewing
David Gowers wrote: Where's a linear encoding? sRGB (ie. the RGB888 encoding used on 99% of standard displays) is encoded nonlinearly with approximately gamma 2.2. Yes, but image processing operations often ignore that and add RGB components together as though they were linear. You can get

Re: [pygame] Whats wrong in events?

2009-10-07 Thread Kris Schnee
Oh, _that_ error again. I encountered that before. Some keyboards just aren't able to register certain key combinations like Up+Left+Space. Best way to deal with it: Just use different keys. On Wed, 07 Oct 2009 22:34:15 +0200, DR0ID dr...@bluewin.ch wrote:

Re: [pygame] 10 bits per color

2009-10-07 Thread Luke Paireepinart
I'm just saying to comply to a standard doesn't necessarily imply you can utilize it fully. You could have an sdhc slot without being able to support class 6 devices at full speed. I don't necessarily know what i'm talking about thoiugh. On 10/1/09, pierrelafran...@sympatico.ca

Re: [pygame] Whats wrong in events?

2009-10-07 Thread Thadeus Burgess
You might be interested in using my InputWrapper for PyGame, though I doubt it will solve your problem, since keyboards are evil :) But it will help you write better organized code! http://www.pygame.org/wiki/InputWrapper?parent=CookBook -Thadeus On Wed, Oct 7, 2009 at 4:12 PM, Kris Schnee

Re: [pygame] On walking animations...

2009-10-07 Thread Jake b
You have the right idea. You save all of the walking frames onto a single image. Ie: 32x32 pixel frames, with 4 frames would be 128x32. Then when you draw your sprite, you use a source Rect() to blit one frame. # pseudo-code def draw(): w,h = 32, 32 # give example values for current

Re: [pygame] Python IDE for windoz

2009-10-07 Thread Jake b
I like geany and / or scite. [ Scite's not an IDE, but worth mentioning. ] On Tue, Oct 6, 2009 at 7:04 PM, pierrelafran...@sympatico.ca pierrelafran...@sympatico.ca wrote: Hi I have administrator rights on a computor in a lab at work, until tomorrow. I would like install IDE for Python.

Re: [pygame] Python IDE for windoz

2009-10-07 Thread Patrick Mullen
Well, it's far too late to solve the OP's problem, but I am going to double vote my choices of SciTE (when I need an editor for a file fast, or just don't want to deal with an IDE, which is actually pretty often) and netbeans which has some really killer tools. (The test coverage and mercurial