s/Int/CInt s/Float/CFloat

This commit is contained in:
Jonathan Frederic 2014-01-16 11:42:38 +00:00
parent 2aeac3a424
commit ff39989b8b
5 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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