aboutsummaryrefslogtreecommitdiff
path: root/helpers/action.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-19 21:31:54 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-19 21:31:54 +0200
commitb86db9f1679c855c2d39a0b116f846d271271a2c (patch)
tree3795bc88bd0fafda718248541d14b2529a1bd406 /helpers/action.py
parentba9ea93a0f52178d24a606fddc2acc5dc85b7ff2 (diff)
downloadMusicSampler-b86db9f1679c855c2d39a0b116f846d271271a2c.tar.gz
MusicSampler-b86db9f1679c855c2d39a0b116f846d271271a2c.tar.zst
MusicSampler-b86db9f1679c855c2d39a0b116f846d271271a2c.zip
Add pirate example config.yml + description
Diffstat (limited to 'helpers/action.py')
-rw-r--r--helpers/action.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/helpers/action.py b/helpers/action.py
index 97873a0..5afe437 100644
--- a/helpers/action.py
+++ b/helpers/action.py
@@ -74,10 +74,14 @@ class Action:
74 else: 74 else:
75 pass 75 pass
76 76
77 def wait(self, duration = 0, **kwargs): 77 def wait(self, duration = 0, music = None, **kwargs):
78 # FIXME: Make it stoppable 78 # FIXME: Make it stoppable
79 # http://stackoverflow.com/questions/29082268/python-time-sleep-vs-event-wait 79 # http://stackoverflow.com/questions/29082268/python-time-sleep-vs-event-wait
80 time.sleep(duration) 80 if music is None:
81 time.sleep(duration)
82 else:
83 # TODO
84 music.wait_end()
81 85
82 def command_print(self, command = "", **kwargs): 86 def command_print(self, command = "", **kwargs):
83 return "running command {}".format(command) 87 return "running command {}".format(command)