def update(self): ImgButton.update(self) if self.hover and self.anim_timer.update(): self.cur_img += 1 if self.cur_img >= len(self.images): self.cur_img = 0 self.blit(self.images[self.cur_img], (0, 0))
def update(self): if self.active: ImgButton.update(self) return