From ff39989b8ba13b973972de4e52ec4ffb9b9efdf1 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Thu, 16 Jan 2014 11:42:38 +0000 Subject: [PATCH] s/Int/CInt s/Float/CFloat --- IPython/html/widgets/widget_button.py | 2 +- IPython/html/widgets/widget_float.py | 4 ++-- IPython/html/widgets/widget_int.py | 4 ++-- IPython/html/widgets/widget_selectioncontainer.py | 4 ++-- IPython/html/widgets/widget_string.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/IPython/html/widgets/widget_button.py b/IPython/html/widgets/widget_button.py index bcb2d0eb6..793ae6f04 100644 --- a/IPython/html/widgets/widget_button.py +++ b/IPython/html/widgets/widget_button.py @@ -18,7 +18,7 @@ import inspect import types from .widget import DOMWidget -from IPython.utils.traitlets import Unicode, Bool, Int +from IPython.utils.traitlets import Unicode, Bool #----------------------------------------------------------------------------- # Classes diff --git a/IPython/html/widgets/widget_float.py b/IPython/html/widgets/widget_float.py index 4979e34a5..144269c7d 100644 --- a/IPython/html/widgets/widget_float.py +++ b/IPython/html/widgets/widget_float.py @@ -14,7 +14,7 @@ Represents an unbounded float using a widget. # Imports #----------------------------------------------------------------------------- from .widget import DOMWidget -from IPython.utils.traitlets import Unicode, Float, Bool, List +from IPython.utils.traitlets import Unicode, CFloat, Bool, List #----------------------------------------------------------------------------- # Classes @@ -23,6 +23,6 @@ class FloatTextWidget(DOMWidget): view_name = Unicode('FloatTextView', sync=True) # Keys - value = Float(0.0, help="Float value", sync=True) + value = CFloat(0.0, help="Float value", sync=True) disabled = Bool(False, help="Enable or disable user changes", sync=True) description = Unicode(help="Description of the value this widget represents", sync=True) diff --git a/IPython/html/widgets/widget_int.py b/IPython/html/widgets/widget_int.py index 104d1fe77..2a3007157 100644 --- a/IPython/html/widgets/widget_int.py +++ b/IPython/html/widgets/widget_int.py @@ -14,7 +14,7 @@ Represents an unbounded int using a widget. # Imports #----------------------------------------------------------------------------- from .widget import DOMWidget -from IPython.utils.traitlets import Unicode, Int, Bool, List +from IPython.utils.traitlets import Unicode, CInt, Bool, List #----------------------------------------------------------------------------- # Classes @@ -23,6 +23,6 @@ class IntTextWidget(DOMWidget): view_name = Unicode('IntTextView', sync=True) # Keys - value = Int(0, help="Int value", sync=True) + value = CInt(0, help="Int value", sync=True) disabled = Bool(False, help="Enable or disable user changes", sync=True) description = Unicode(help="Description of the value this widget represents", sync=True) diff --git a/IPython/html/widgets/widget_selectioncontainer.py b/IPython/html/widgets/widget_selectioncontainer.py index d20dcadbc..77416dbc2 100644 --- a/IPython/html/widgets/widget_selectioncontainer.py +++ b/IPython/html/widgets/widget_selectioncontainer.py @@ -15,7 +15,7 @@ pages. # Imports #----------------------------------------------------------------------------- from .widget import DOMWidget -from IPython.utils.traitlets import Unicode, Dict, Int, List, Instance +from IPython.utils.traitlets import Unicode, Dict, CInt, List, Instance #----------------------------------------------------------------------------- # Classes @@ -25,7 +25,7 @@ class AccordionWidget(DOMWidget): # Keys _titles = Dict(help="Titles of the pages", sync=True) - selected_index = Int(0, sync=True) + selected_index = CInt(0, sync=True) children = List(Instance(DOMWidget), sync=True) diff --git a/IPython/html/widgets/widget_string.py b/IPython/html/widgets/widget_string.py index b35f47940..cb1d3774d 100644 --- a/IPython/html/widgets/widget_string.py +++ b/IPython/html/widgets/widget_string.py @@ -17,7 +17,7 @@ import inspect import types from .widget import DOMWidget -from IPython.utils.traitlets import Unicode, Bool, List, Int +from IPython.utils.traitlets import Unicode, Bool, List #----------------------------------------------------------------------------- # Classes