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
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
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 =
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
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
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
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
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 =
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
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
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
11 matches
Mail list logo