Sets the size value for each column Args: values (iterable of int or str): values are treated as percentage.
(self, values)
| 1789 | super(GridBox, self).remove_child(child) |
| 1790 | |
| 1791 | def set_column_sizes(self, values): |
| 1792 | """Sets the size value for each column |
| 1793 | |
| 1794 | Args: |
| 1795 | values (iterable of int or str): values are treated as percentage. |
| 1796 | """ |
| 1797 | self.css_grid_template_columns = ' '.join(map(lambda value: (str(value) if str(value).endswith('%') else str(value) + '%') , values)) |
| 1798 | |
| 1799 | def set_row_sizes(self, values): |
| 1800 | """Sets the size value for each row |