##// END OF EJS Templates
Fixed comments for optional kwargs so they are redundant.
Jonathan Frederic -
Show More
@@ -325,8 +325,8 b' class DOMWidget(Widget):'
325 325 def set_css(self, *args, **kwargs):
326 326 """Set one or more CSS properties of the widget (shared among all of the
327 327 views). This function has two signatures:
328 - set_css(css_dict, [selector=''])
329 - set_css(key, value, [selector=''])
328 - set_css(css_dict, selector='')
329 - set_css(key, value, selector='')
330 330
331 331 Parameters
332 332 ----------
@@ -341,7 +341,7 b' class DOMWidget(Widget):'
341 341 """
342 342 selector = kwargs.get('selector', '')
343 343
344 # Signature 1: set_css(css_dict, [selector=''])
344 # Signature 1: set_css(css_dict, selector='')
345 345 if len(args) == 1:
346 346 if isinstance(args[0], dict):
347 347 for (key, value) in args[0].items():
@@ -349,7 +349,7 b' class DOMWidget(Widget):'
349 349 else:
350 350 raise Exception('css_dict must be a dict.')
351 351
352 # Signature 2: set_css(key, value, [selector=''])
352 # Signature 2: set_css(key, value, selector='')
353 353 elif len(args) == 2 or len(args) == 3:
354 354
355 355 # Selector can be a positional arg if it's the 3rd value
General Comments 0
You need to be logged in to leave comments. Login now