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

Method define_grid

remi/gui.py:1742–1749  ·  view source on GitHub ↗

Populates the Table with a list of tuples of strings. Args: matrix (list): list of iterables of strings (lists or something else). Items in the matrix have to correspond to a key for the children.

(self, matrix)

Source from the content-addressed store, hash-verified

1740 self.style.update({'display': 'grid'})
1741
1742 def define_grid(self, matrix):
1743 """Populates the Table with a list of tuples of strings.
1744
1745 Args:
1746 matrix (list): list of iterables of strings (lists or something else).
1747 Items in the matrix have to correspond to a key for the children.
1748 """
1749 self.css_grid_template_areas = ''.join("'%s'" % (' '.join(x)) for x in matrix)
1750
1751 def append(self, value, key=''):
1752 """Adds a child widget, generating and returning a key if not provided

Callers 3

set_from_asciiartMethod · 0.95
__init__Method · 0.80
redefine_gridMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected