aboutsummaryrefslogtreecommitdiff
path: root/helpers/action.py
diff options
context:
space:
mode:
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)