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:
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()
'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']
},
{
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)