mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
s/Int/CInt s/Float/CFloat
This commit is contained in:
parent
2aeac3a424
commit
ff39989b8b
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user