Show More
@@ -29,6 +29,15 class ContainerWidget(DOMWidget): | |||||
29 | children = Tuple() |
|
29 | children = Tuple() | |
30 | _children = Tuple(sync=True) |
|
30 | _children = Tuple(sync=True) | |
31 |
|
31 | |||
|
32 | ||||
|
33 | def __init__(self, **kwargs): | |||
|
34 | super(ContainerWidget, self).__init__(**kwargs) | |||
|
35 | self.on_displayed(ContainerWidget._fire_children_displayed) | |||
|
36 | ||||
|
37 | def _fire_children_displayed(self): | |||
|
38 | for child in self._children: | |||
|
39 | child._handle_displayed() | |||
|
40 | ||||
32 | def _children_changed(self, name, old, new): |
|
41 | def _children_changed(self, name, old, new): | |
33 | """Validate children list. |
|
42 | """Validate children list. | |
34 |
|
43 |
General Comments 0
You need to be logged in to leave comments.
Login now