def __init__( self , loc , size , action , image_up_file = "../img/btn/button.png" , image_down_file = "../img/btn/button_down.png" ): # super Sprite.__init__(self, loc, size, image_up_file) # image data self.image_up = pygame.transform.scale(pygame.image.load(image_up_file) , size) self.image_down = pygame.transform.scale(pygame.image.load(image_down_file), size) # button action self.action = action # verification vars self.phase1 = False self.phase2 = False