<i>
</i>import pygame
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((320, 240), 0, 16)
background = pygame.Surface(screen.get_size())
background = background.convert()
background.fill([255,255,0])
red = (255, 0, 0)
circle_xy = (150, 120)
bild_rect = pygame.image.load('test1.png').convert_alpha()
pygame.draw.rect(bild_rect, (255,0,0), (10,0,30,50),1)
clock = pygame.time.Clock()
b=10
for angle in xrange(0, 180, 1):
clock.tick(60)
b=b+2
screen.blit(background, (0, 0))
pygame.draw.circle(screen, red, circle_xy, 50, 0)
bild = pygame.transform.rotate(bild_rect, angle)
bild1=bild.get_rect(center=(b,120))
screen.blit(bild,bild1 )
pygame.display.flip()
#while pygame.event.poll().type != pygame.KEYDOWN:
# pygame.time.delay(10)
pygame.quit()