+ for music in self.key.parent.open_files.values():
+ if music.is_playing() and not music.is_paused():
+ music.pause()
+
+ def unpause(self, music = None, **kwargs):
+ if music is not None:
+ music.unpause()
+ else:
+ for music in self.key.parent.open_files.values():
+ if music.is_playing() and music.is_paused():
+ music.unpause()