X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler.py;h=41b71be5bd1bd96502b18981c96725bef8554446;hb=a1d7f30a1cafbfcf3a0a561fcab71ce6437a3d45;hp=5613fdf1ab0824df8e75543ff41544b855cd1402;hpb=29597680758e4924aa71fc021465189e153f2016;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/music_sampler.py b/music_sampler.py index 5613fdf..41b71be 100644 --- a/music_sampler.py +++ b/music_sampler.py @@ -45,15 +45,14 @@ class PlayList(RelativeLayout): open_files = self.parent.ids['Mapping'].open_files self.playlist = [] for music_file in open_files.values(): - if not music_file.is_not_stopped(): + if not music_file.is_in_use(): continue text = "{}/{}".format( helpers.duration_to_min_sec(music_file.sound_position), - helpers.duration_to_min_sec(music_file.sound_duration) - ) + helpers.duration_to_min_sec(music_file.sound_duration)) - if music_file.is_paused(): + if music_file.is_loaded_paused(): self.playlist.append(["⏸", music_file.name, text, False]) else: self.playlist.append(["⏵", music_file.name, text, True])