(self, *args, **kwargs)
| 1917 | """ |
| 1918 | |
| 1919 | def __init__(self, *args, **kwargs): |
| 1920 | super(HBox, self).__init__(*args, **kwargs) |
| 1921 | |
| 1922 | # fixme: support old browsers |
| 1923 | # http://stackoverflow.com/a/19031640 |
| 1924 | self.style.update({'display':'flex', 'flex-direction':'row'}) |
| 1925 | self.style['justify-content'] = self.style.get('justify-content', 'space-around') |
| 1926 | self.style['align-items'] = self.style.get('align-items', 'center') |
| 1927 | |
| 1928 | def append(self, value, key=''): |
| 1929 | """It allows to add child widgets to this. |