A lot of bug fixes...

Related to 1-to-1 changes
Jonathan Frederic 12 years ago
parent 047a90538f
commit d694666e66

@ -15,7 +15,7 @@
**/
define(["notebook/js/widgets/widget"], function(widget_manager){
var CheckboxView = IPython.DOMWidgetView.extend({
var CheckBoxView = IPython.DOMWidgetView.extend({
// Called when view is rendered.
render : function(){
@ -60,12 +60,12 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
return CheckboxView.__super__.update.apply(this);
return CheckBoxView.__super__.update.apply(this);
},
});
widget_manager.register_widget_view('CheckboxView', CheckboxView);
widget_manager.register_widget_view('CheckBoxView', CheckBoxView);
var ToggleButtonView = IPython.DOMWidgetView.extend({

@ -166,7 +166,7 @@ class Widget(LoggingConfigurable):
def _handle_property_changed(self, name, old, new):
"""Called when a property has been changed."""
# Make sure this isn't information that the front-end just sent us.
if should_send_property(self, name, new):
if self.should_send_property(name, new):
# Send new state to front-end
self.send_state(key=name)

@ -27,6 +27,6 @@ class CheckBoxWidget(DOMWidget):
description = Unicode('', help="Description of the boolean (label).", sync=True)
disabled = Bool(False, help="Enable or disable user changes.", sync=True)
class ToggleButtonWidget(CheckboxWidget):
class ToggleButtonWidget(CheckBoxWidget):
view_name = Unicode('ToggleButtonView', sync=True)

@ -29,13 +29,13 @@ class ToggleButtonsWidget(DOMWidget):
description = Unicode(help="Description of the value this widget represents", sync=True)
class DropdownWidget(SelectionWidget):
class DropdownWidget(ToggleButtonsWidget):
view_name = Unicode('DropdownView', sync=True)
class RadioButtonsWidget(SelectionWidget):
class RadioButtonsWidget(ToggleButtonsWidget):
view_name = Unicode('RadioButtonsView', sync=True)
class ListBoxWidget(SelectionWidget):
class ListBoxWidget(ToggleButtonsWidget):
view_name = Unicode('ListBoxView', sync=True)

Loading…
Cancel
Save