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

Method set_column_gap

remi/gui.py:1807–1818  ·  view source on GitHub ↗

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

(self, value)

Source from the content-addressed store, hash-verified

1805 self.css_grid_template_rows = ' '.join(map(lambda value: (str(value) if str(value).endswith('%') else str(value) + '%') , values))
1806
1807 def set_column_gap(self, value):
1808 """Sets the gap value between columns
1809
1810 Args:
1811 value (int or str): gap value (i.e. 10 or "10px")
1812 """
1813 if self.css_width == "auto":
1814 if (type(value) == int and value != 0) or value[0] != "0":
1815 raise CssStyleError("Do not set column gap in combination with width auto")
1816 if type(value) == int:
1817 value = str(value) + 'px'
1818 self.style['grid-column-gap'] = value
1819
1820 def set_row_gap(self, value):
1821 """Sets the gap value between rows

Callers 2

set_from_asciiartMethod · 0.95
redefine_gridMethod · 0.80

Calls 1

CssStyleErrorClass · 0.85

Tested by

no test coverage detected