def run(self):
print(self.description())
getattr(self, self.action)(**self.arguments)
- pygame.event.post(pygame.event.Event(pygame.USEREVENT))
+ #pygame.event.post(pygame.event.Event(pygame.USEREVENT))
def description(self):
return getattr(self, self.action + "_print")(**self.arguments)
music.stop(fade_out = fade_out)
else:
if fade_out > 0:
- pygame.fadeout(int(fade_out * 1000))
+ pygame.mixer.fadeout(int(fade_out * 1000))
else:
pygame.mixer.stop()
def stop_all_actions(self, **kwargs):
- self.key.mapping.stop_all_running()
+ self.key.parent.stop_all_running()
def volume(self, music = None, value = 100, **kwargs):
if music is not None: