##// END OF EJS Templates
Container assumes the children attribute is not None...
Jason Grout -
Show More
@@ -15,9 +15,9 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, children = None, **kwargs):
20 def __init__(self, children = (), **kwargs):
21 kwargs['children'] = children
21 kwargs['children'] = children
22 super(ContainerWidget, self).__init__(**kwargs)
22 super(ContainerWidget, self).__init__(**kwargs)
23 self.on_displayed(ContainerWidget._fire_children_displayed)
23 self.on_displayed(ContainerWidget._fire_children_displayed)
General Comments 0
You need to be logged in to leave comments. Login now