##// END OF EJS Templates
make element_id kwarg only.
Matthias Bussonnier -
Show More
@@ -89,7 +89,7 b' class Audio(DisplayObject):'
89 """
89 """
90 _read_flags = 'rb'
90 _read_flags = 'rb'
91
91
92 def __init__(self, data=None, filename=None, url=None, embed=None, rate=None, autoplay=False, normalize=True,
92 def __init__(self, data=None, filename=None, url=None, embed=None, rate=None, autoplay=False, normalize=True, *,
93 element_id=None):
93 element_id=None):
94 if filename is None and url is None and data is None:
94 if filename is None and url is None and data is None:
95 raise ValueError("No audio data found. Expecting filename, url, or data.")
95 raise ValueError("No audio data found. Expecting filename, url, or data.")
General Comments 0
You need to be logged in to leave comments. Login now