Sets the gap value between rows Args: value (int or str): gap value (i.e. 10 or "10px")
(self, value)
| 1818 | self.style['grid-column-gap'] = value |
| 1819 | |
| 1820 | def set_row_gap(self, value): |
| 1821 | """Sets the gap value between rows |
| 1822 | |
| 1823 | Args: |
| 1824 | value (int or str): gap value (i.e. 10 or "10px") |
| 1825 | """ |
| 1826 | if self.css_height == "auto": |
| 1827 | if (type(value) == int and value != 0) or value[0] != "0": |
| 1828 | raise CssStyleError("Do not set row gap in combination with height auto") |
| 1829 | if type(value) == int: |
| 1830 | value = str(value) + 'px' |
| 1831 | self.style['grid-row-gap'] = value |
| 1832 | |
| 1833 | def set_from_asciiart(self, asciipattern, column_gap=0, row_gap=0): |
| 1834 | """Defines the GridBox layout from a simple and intuitive ascii art table |
no test coverage detected