X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git;a=blobdiff_plain;f=helpers%2Factions%2Fwait.py;h=ea424081f8c2d984e86b9e2b8b2171dd82ee5cc9;hp=f7d2a781721bc004e5fb87c86d0bfd72cbbb9f7a;hb=6c42e32d98aa2e04d446f31b8e667a280acf4b54;hpb=343822904ee26955e622e325539c64aee1c2112e diff --git a/helpers/actions/wait.py b/helpers/actions/wait.py index f7d2a78..ea42408 100644 --- a/helpers/actions/wait.py +++ b/helpers/actions/wait.py @@ -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()