From 1da6d0eecf9e340880f3770b2fe49aff9e217788 2014-01-16 10:57:18 From: Jonathan Frederic Date: 2014-01-16 10:57:18 Subject: [PATCH] Added sync= attr to DOMWidget --- diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index 831e762..3e612ff 100644 --- a/IPython/html/widgets/widget.py +++ b/IPython/html/widgets/widget.py @@ -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.