MCPcopy Index your code
hub / github.com/rawpython/remi / set_row_gap

Method set_row_gap

remi/gui.py:1820–1831  ·  view source on GitHub ↗

Sets the gap value between rows Args: value (int or str): gap value (i.e. 10 or "10px")

(self, value)

Source from the content-addressed store, hash-verified

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

Callers 2

set_from_asciiartMethod · 0.95
redefine_gridMethod · 0.80

Calls 1

CssStyleErrorClass · 0.85

Tested by

no test coverage detected