Args: children (Widget, or iterable of Widgets): The child to be appended. In case of a dictionary, each item's key is used as 'key' param for the single append. layout_orientation (Container.LAYOUT_VERTICAL, Container.LAYOUT_HORIZONTAL): Container la
(self, children=None, *args, **kwargs)
| 1247 | LAYOUT_VERTICAL = False |
| 1248 | |
| 1249 | def __init__(self, children=None, *args, **kwargs): |
| 1250 | """ |
| 1251 | Args: |
| 1252 | children (Widget, or iterable of Widgets): The child to be appended. In case of a dictionary, |
| 1253 | each item's key is used as 'key' param for the single append. |
| 1254 | layout_orientation (Container.LAYOUT_VERTICAL, Container.LAYOUT_HORIZONTAL): Container layout |
| 1255 | """ |
| 1256 | super(Container, self).__init__(*args, **kwargs) |
| 1257 | |
| 1258 | self.set_layout_orientation(kwargs.get('layout_orientation', Container.LAYOUT_VERTICAL)) |
| 1259 | if children: |
| 1260 | self.append(children) |
| 1261 | |
| 1262 | def append(self, value, key=''): |
| 1263 | """Adds a child widget, generating and returning a key if not provided |
nothing calls this directly
no test coverage detected