From bff850b08dfb2db0e4220a760d9f01faaa63062f 2014-01-16 10:57:18 From: Jonathan Frederic Date: 2014-01-16 10:57:18 Subject: [PATCH] Added sync=True to all view name attrs --- diff --git a/IPython/html/widgets/widget_bool.py b/IPython/html/widgets/widget_bool.py index e67efb3..b1f9504 100644 --- a/IPython/html/widgets/widget_bool.py +++ b/IPython/html/widgets/widget_bool.py @@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Bool, List #----------------------------------------------------------------------------- class BoolWidget(DOMWidget): target_name = Unicode('BoolWidgetModel') - view_name = Unicode('CheckboxView') + view_name = Unicode('CheckboxView', sync=True) # Model Keys value = Bool(False, help="Bool value", sync=True) diff --git a/IPython/html/widgets/widget_button.py b/IPython/html/widgets/widget_button.py index 0f09381..f7c6690 100644 --- a/IPython/html/widgets/widget_button.py +++ b/IPython/html/widgets/widget_button.py @@ -25,7 +25,7 @@ from IPython.utils.traitlets import Unicode, Bool, Int #----------------------------------------------------------------------------- class ButtonWidget(DOMWidget): target_name = Unicode('ButtonWidgetModel') - view_name = Unicode('ButtonView') + view_name = Unicode('ButtonView', sync=True) # Keys description = Unicode('', help="Description of the button (label).", sync=True) diff --git a/IPython/html/widgets/widget_container.py b/IPython/html/widgets/widget_container.py index 049f8f3..aec5a10 100644 --- a/IPython/html/widgets/widget_container.py +++ b/IPython/html/widgets/widget_container.py @@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Bool, List, Instance #----------------------------------------------------------------------------- class ContainerWidget(DOMWidget): target_name = Unicode('ContainerWidgetModel') - view_name = Unicode('ContainerView') + view_name = Unicode('ContainerView', sync=True) # Keys, all private and managed by helper methods. Flexible box model # classes... diff --git a/IPython/html/widgets/widget_float.py b/IPython/html/widgets/widget_float.py index e2ff8e3..0f04202 100644 --- a/IPython/html/widgets/widget_float.py +++ b/IPython/html/widgets/widget_float.py @@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Float, Bool, List #----------------------------------------------------------------------------- class FloatWidget(DOMWidget): target_name = Unicode('FloatWidgetModel') - view_name = Unicode('FloatTextView') + view_name = Unicode('FloatTextView', sync=True) # Keys value = Float(0.0, help="Float value", sync=True) diff --git a/IPython/html/widgets/widget_float_range.py b/IPython/html/widgets/widget_float_range.py index 1105c06..acfeeda 100644 --- a/IPython/html/widgets/widget_float_range.py +++ b/IPython/html/widgets/widget_float_range.py @@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Float, Bool, List #----------------------------------------------------------------------------- class FloatRangeWidget(DOMWidget): target_name = Unicode('FloatRangeWidgetModel') - view_name = Unicode('FloatSliderView') + view_name = Unicode('FloatSliderView', sync=True) # Keys value = Float(0.0, help="Float value", sync=True) diff --git a/IPython/html/widgets/widget_image.py b/IPython/html/widgets/widget_image.py index 7442fe7..86fd711 100644 --- a/IPython/html/widgets/widget_image.py +++ b/IPython/html/widgets/widget_image.py @@ -24,7 +24,7 @@ from IPython.utils.traitlets import Unicode, Bytes #----------------------------------------------------------------------------- class ImageWidget(DOMWidget): target_name = Unicode('ImageWidgetModel') - view_name = Unicode('ImageView') + view_name = Unicode('ImageView', sync=True) # Define the custom state properties to sync with the front-end format = Unicode('png', sync=True) diff --git a/IPython/html/widgets/widget_int.py b/IPython/html/widgets/widget_int.py index d7c255d..260cda4 100644 --- a/IPython/html/widgets/widget_int.py +++ b/IPython/html/widgets/widget_int.py @@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Int, Bool, List #----------------------------------------------------------------------------- class IntWidget(DOMWidget): target_name = Unicode('IntWidgetModel') - view_name = Unicode('IntTextView') + view_name = Unicode('IntTextView', sync=True) # Keys value = Int(0, help="Int value", sync=True) diff --git a/IPython/html/widgets/widget_int_range.py b/IPython/html/widgets/widget_int_range.py index 9aa9d11..f0d16a6 100644 --- a/IPython/html/widgets/widget_int_range.py +++ b/IPython/html/widgets/widget_int_range.py @@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Int, Bool, List #----------------------------------------------------------------------------- class IntRangeWidget(DOMWidget): target_name = Unicode('IntRangeWidgetModel') - view_name = Unicode('IntSliderView') + view_name = Unicode('IntSliderView', sync=True) # Keys value = Int(0, help="Int value", sync=True) diff --git a/IPython/html/widgets/widget_selection.py b/IPython/html/widgets/widget_selection.py index b477bc9..bf3d9e9 100644 --- a/IPython/html/widgets/widget_selection.py +++ b/IPython/html/widgets/widget_selection.py @@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, List, Bool #----------------------------------------------------------------------------- class SelectionWidget(DOMWidget): target_name = Unicode('SelectionWidgetModel') - view_name = Unicode('DropdownView') + view_name = Unicode('DropdownView', sync=True) # Keys value = Unicode(help="Selected value", sync=True) # TODO: Any support diff --git a/IPython/html/widgets/widget_selectioncontainer.py b/IPython/html/widgets/widget_selectioncontainer.py index d941621..f2eb8c6 100644 --- a/IPython/html/widgets/widget_selectioncontainer.py +++ b/IPython/html/widgets/widget_selectioncontainer.py @@ -22,7 +22,7 @@ from IPython.utils.traitlets import Unicode, Dict, Int, List, Instance #----------------------------------------------------------------------------- class SelectionContainerWidget(DOMWidget): target_name = Unicode('SelectionContainerWidgetModel') - view_name = Unicode('TabView') + view_name = Unicode('TabView', sync=True) # Keys _titles = Dict(help="Titles of the pages", sync=True) diff --git a/IPython/html/widgets/widget_string.py b/IPython/html/widgets/widget_string.py index 4b8d27a..7ce6e32 100644 --- a/IPython/html/widgets/widget_string.py +++ b/IPython/html/widgets/widget_string.py @@ -24,7 +24,7 @@ from IPython.utils.traitlets import Unicode, Bool, List, Int #----------------------------------------------------------------------------- class StringWidget(DOMWidget): target_name = Unicode('StringWidgetModel') - view_name = Unicode('TextBoxView') + view_name = Unicode('TextBoxView', sync=True) # Keys value = Unicode(help="String value", sync=True)