Windows 7 64bit - Python 2.7.3 64bit Installed - Pygame Issues
Solution 1:
There is no 64bit
of pygame
on official site and in bitbucket repo of it.
Try to download 64bit
of pygame
from here.
It have a range of pygame
packages form python 2.6
to python 3.4
for 64bit
and also for 32bit
windows.
You should install it in on 64bit Python .
Solution 2:
Try this instead of update()
pygame.display.flip()
Also I had the "Not Responding" problem until I added the following to handle events (inside my game while loop):
pygame.event.get()
Solution 3:
Thank you very much for your help. It is now fully working.
It has been three days of install and uninstall, reading countless web pages and trying to stay awake at work after it LOL!
trail and error of programming I guess :)
I installed pygame-1.9.2a0.win-amd64-py2.7.exe from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
Which installed Pygame version 1.9.2a0
I changed the code as advised from using update() to flip()
I also used the pygame.event.get within the while loop
The pygame window does not crash as before.
I have added the udpated script so others can benefit
import pygame, sys
running = True
deepblue = (26,0,255)
mintcream = (254,255,250)
pygame.init()
size = (500,500)
surface = pygame.display.set_mode(size)
surface.fill(deepblue)
position = (250,250)
radius = 50
linewidth = 2
pygame.draw.circle(surface, mintcream, position, radius, linewidth)
pygame.display.flip()
while running:
event = pygame.event.wait()
if event.type == pygame.QUIT:
running = False
pygame.quit()
Post a Comment for "Windows 7 64bit - Python 2.7.3 64bit Installed - Pygame Issues"