MCPcopy Create free account
hub / github.com/rawpython/remi / set_column_sizes

Method set_column_sizes

remi/gui.py:1791–1797  ·  view source on GitHub ↗

Sets the size value for each column Args: values (iterable of int or str): values are treated as percentage.

(self, values)

Source from the content-addressed store, hash-verified

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

Callers 1

set_from_asciiartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected