Show More
@@ -14,7 +14,7 b' Represents a container that can be used to group other widgets.' | |||||
14 | # Imports |
|
14 | # Imports | |
15 | #----------------------------------------------------------------------------- |
|
15 | #----------------------------------------------------------------------------- | |
16 | from .widget import DOMWidget |
|
16 | from .widget import DOMWidget | |
17 |
from IPython.utils.traitlets import Unicode, |
|
17 | from IPython.utils.traitlets import Unicode, Tuple, Instance | |
18 |
|
18 | |||
19 | #----------------------------------------------------------------------------- |
|
19 | #----------------------------------------------------------------------------- | |
20 | # Classes |
|
20 | # Classes | |
@@ -24,8 +24,8 b' class ContainerWidget(DOMWidget):' | |||||
24 |
|
24 | |||
25 | # Keys, all private and managed by helper methods. Flexible box model |
|
25 | # Keys, all private and managed by helper methods. Flexible box model | |
26 | # classes... |
|
26 | # classes... | |
27 |
children = |
|
27 | children = Tuple(Instance(DOMWidget)) | |
28 |
_children = |
|
28 | _children = Tuple(Instance(DOMWidget), sync=True) | |
29 |
|
29 | |||
30 | def _children_changed(self, name, old, new): |
|
30 | def _children_changed(self, name, old, new): | |
31 | """Validate children list. |
|
31 | """Validate children list. |
General Comments 0
You need to be logged in to leave comments.
Login now