Added sync= attr to DOMWidget

This commit is contained in:
Jonathan Frederic 2014-01-14 15:18:17 +00:00
parent b4a83b6044
commit cfe8a07337

View File

@ -330,12 +330,10 @@ class Widget(LoggingConfigurable):
class DOMWidget(Widget):
visible = Bool(True, help="Whether or not the widget is visible.")
visible = Bool(True, help="Whether or not the widget is visible.", sync=True)
# Private/protected declarations
_css = Dict() # Internal CSS property dict
keys = ['visible', '_css'] + Widget.keys # TODO
_css = Dict(sync=True) # Internal CSS property dict
def get_css(self, key, selector=""):
"""Get a CSS property of the widget.
@ -355,7 +353,6 @@ class DOMWidget(Widget):
else:
return None
def set_css(self, *args, **kwargs):
"""Set one or more CSS properties of the widget.