]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Coding styles
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jul 2016 00:01:51 +0000 (02:01 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jul 2016 00:01:51 +0000 (02:01 +0200)
helpers/action.py
helpers/actions/wait.py
helpers/key.py
helpers/mapping.py

index 1f374ec6a4ffb843e8e938b27fb85b61a0a611f4..6ac47b199015c61b9015e3e347c26d37a9549300 100644 (file)
@@ -72,7 +72,8 @@ class Action:
     def on_enter_loading(self):
         if hasattr(actions, self.action):
             if 'music' in self.arguments:
-                self.arguments['music'].subscribe_loaded(self.callback_music_loaded)
+                self.arguments['music'].subscribe_loaded(
+                        self.callback_music_loaded)
             else:
                 self.success()
         else:
index f7d2a781721bc004e5fb87c86d0bfd72cbbb9f7a..ea424081f8c2d984e86b9e2b8b2171dd82ee5cc9 100644 (file)
@@ -5,7 +5,9 @@ def run(action, duration=0, music=None, set_wait_id=None, **kwargs):
         action.mapping.add_wait_id(set_wait_id, action)
 
     action.sleep_event = threading.Event()
-    action.sleep_event_timer = threading.Timer(duration, action.sleep_event.set)
+    action.sleep_event_timer = threading.Timer(
+            duration,
+            action.sleep_event.set)
 
     if music is not None:
         music.wait_end()
index 3c98ce74617ef15a7940afdbf4214ad29ce9f796..2f941532256ff89d97b688fe0a70582c6e813e35 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']
         },
         {
index 1256696a8968bfe58ea843ff8a0cfc1874fa0471..dbc1a811e405de4273f53259c711f09e1d83269d 100644 (file)
@@ -375,7 +375,8 @@ class Mapping(RelativeLayout):
                                 self.open_files[filename]\
                                         .reload_properties(**music_property)
 
-                                seen_files[filename] = self.open_files[filename]
+                                seen_files[filename] =\
+                                        self.open_files[filename]
                             else:
                                 seen_files[filename] = MusicFile(
                                         filename, self, **music_property)