+import helpers
+
+helpers.parse_args()
+
import kivy
kivy.require("1.9.1")
from kivy.app import App
from kivy.lang import Builder
from helpers.key import Key
from helpers.mapping import Mapping
-import helpers
class KeyList(RelativeLayout):
keylist = ListProperty([])
open_files = self.parent.ids['Mapping'].open_files
self.playlist = []
for music_file in open_files.values():
- if not music_file.is_playing():
+ 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])