Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self,imgnum):
- pygame.sprite.Sprite.__init__(self)
- num = str(imgnum)
- self.image = pygame.image.load("C:\Python27\Programs\CalculatorProgram\CalcGraphics\k"+(num)+".png").convert_alpha()
- self.rect = self.image.get_rect()
- self.rect.center = (100, 300)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement