]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/key.py
Add music-path option to the command line
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / key.py
index 3c98ce74617ef15a7940afdbf4214ad29ce9f796..b5c1af95a3901a0a1e095506f4538f52399775c9 100644 (file)
@@ -85,8 +85,8 @@ class Key(ButtonBehavior, Widget):
             'source': 'loaded',
             'dest': 'loaded_running',
             'after': ['run_actions', 'finish'],
-            # if a child, like loaded_no_actions, has no transitions, then it is
-            # bubbled to the parent, and we don't want that.
+            # if a child, like loaded_no_actions, has no transitions, then it
+            # is bubbled to the parent, and we don't want that.
             'conditions': ['is_loaded']
         },
         {
@@ -191,7 +191,7 @@ class Key(ButtonBehavior, Widget):
         for self.current_action in self.actions:
             if self.parent.keep_running(self, start_time):
                 self.list_actions()
-                self.current_action.run()
+                self.current_action.run(start_time)
         self.list_actions(last_action_finished=True)
 
         self.parent.finished_running(self, start_time)