[maemo-developers] [maemo-developers] pygame -- problems with initializing screen display

From: Christine Liu liuliuliu at gmail.com
Date: Mon May 15 23:10:00 EEST 2006
hello all -
thanks for the supportive community.
having issues with pygame on my nokia 770:

Nokia770-51:/home/user# python2.4 ballbounce.py
Traceback (most recent call last):
  File "ballbounce.py", line 8, in ?
    screen = pygame.display.set_mode(size)
pygame.error: No video mode large enough for 320x240

i was having this error earlier on -- it doesnt like setting the
screen size! even if it's very obviously small, like 10 x 10 pixels,
or the fully correct res, 800 x 480. strange.

import sys, pygame
size = width, height = 320, 240
screen = pygame.display.set_mode(size)
[it doesnt like the line above)

this also happens in the interactive (with test code from
>>> import pygame
>>> pygame.init()
(5, 0)   <--- this returns (numpass, numfail)
>>> pygame.display.set_mode((800,480))
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
pygame.error: No video mode large enough for 800x480

help? also, i installed PIL, but i do not have XV and am having
problems compiling packages. if someone could help, i'd be so
grateful! once i get pygame rolling i will be all set. and HAPPY.
thank you! :)

best, christine

More information about the maemo-developers mailing list