Re: [pygame] pygame.init before pygame.mixer.init?

2007-10-12 Thread Brian Fisher
I tested the cases Clare mentioned, and was able to get the same behavior as her (specifically that doing a pygame.init first, sound would never be heard until after a display was sucessfully created, while doing a pygame.mixer.init first, the sound worked in all cases). Also, if I replace

[pygame] Pygame + VideoCapture?

2007-10-12 Thread AlgoMantra
Hi, I've been playing with the VideoCapture module to get a webcam working. It does work but only at 160,120 resolution and this is the error I get: Traceback (most recent call last): File C:/Documents and Settings/user/Desktop/flutera/webcam.py, line 8, in module

Re: [pygame] help: problem with pygame.display.get_surface

2007-10-12 Thread inhahe
that works fine, thanks. On 10/12/07, Brian Fisher [EMAIL PROTECTED] wrote: do you get what you want if you change the display resolution to match the window? (see below) import pygame screen = pygame.display.set_mode((800,600), pygame.RESIZABLE) while 1: event =

Re: [pygame] Free chapter of my book

2007-10-12 Thread Ken Seehart
Will McGugan wrote: Horst JENS wrote: I think that either the comment should say in 10 frames or the randint statement should be randint(1,10). correction: or the ranint statement should be randint(1,20) Ack! Well spotted. Never hard code values in to comments! Will A former

Re: [pygame] Free chapter of my book

2007-10-12 Thread Will McGugan
Horst JENS wrote: I think that either the comment should say in 10 frames or the randint statement should be randint(1,10). correction: or the ranint statement should be randint(1,20) Ack! Well spotted. Never hard code values in to comments! Will

[pygame] help: problem with pygame.display.get_surface

2007-10-12 Thread inhahe
I'm having a problem here. I want to get a new surface when I resize a window so that I have access to the entire window, if it's bigger. So I figured screen = pygame.display.get_surface() is the way. But it's not working. it's giving me a surface with the same dimensions as the display before

Re: [pygame] pygame.init before pygame.mixer.init?

2007-10-12 Thread RR4CLB
directX audio backend sets things up in a way that audio can't be played until after a window is created. The docs for pygame.mixer.init allude to this: http://www.pygame.org/docs/ref/mixer.html#pygame.mixer.init *** Yes, that is what I read and was refering to when I tried explaining it. I

Re: [pygame] help: problem with pygame.display.get_surface

2007-10-12 Thread Brian Fisher
do you get what you want if you change the display resolution to match the window? (see below) import pygame screen = pygame.display.set_mode((800,600), pygame.RESIZABLE) while 1: event = pygame.event.wait() if event.type == pygame.VIDEORESIZE: print event screen =

Re: [pygame] how do I automatically maximize the window? how do i make the window borderless?

2007-10-12 Thread Ian Mallett
On 10/12/07, inhahe [EMAIL PROTECTED] wrote: one more thing: how can i make a pygame window that's not full-screen but doesn't have any border/title bar? there oughtta be a way. I did it in pygtk. :P Use the tag pygame.NOFRAME

[pygame] how do I automatically maximize the window? how do i make the window borderless?

2007-10-12 Thread inhahe
I'd like a way to (through code) maximize the window. i don't see such a function anywhere. the only way i can maximize it is to set pygame.RESIZABLE and click the button manually. but i'd like to have the option to start the app maximized (not full-screen). also, a minimize function might be

Re: [pygame] Pygame + VideoCapture?

2007-10-12 Thread René Dudfield
Have you tried other resolutions? Some cameras can only get certain resolutions. Is there a way to list available resolutions with that library? Otherwise look up your camera model on the net, and find the resolutions that way. Please let the mailing list know how you get along... I'm