Show More
@@ -15,9 +15,10 b' class ContainerWidget(DOMWidget):' | |||||
15 | # Child widgets in the container. |
|
15 | # Child widgets in the container. | |
16 | # Using a tuple here to force reassignment to update the list. |
|
16 | # Using a tuple here to force reassignment to update the list. | |
17 | # When a proper notifying-list trait exists, that is what should be used here. |
|
17 | # When a proper notifying-list trait exists, that is what should be used here. | |
18 | children = Tuple(sync=True) |
|
18 | children = Tuple(sync=True, allow_none=False) | |
19 |
|
19 | |||
20 | def __init__(self, **kwargs): |
|
20 | def __init__(self, children = (), **kwargs): | |
|
21 | kwargs['children'] = children | |||
21 | super(ContainerWidget, self).__init__(**kwargs) |
|
22 | super(ContainerWidget, self).__init__(**kwargs) | |
22 | self.on_displayed(ContainerWidget._fire_children_displayed) |
|
23 | self.on_displayed(ContainerWidget._fire_children_displayed) | |
23 |
|
24 |
General Comments 0
You need to be logged in to leave comments.
Login now