Skip to content

Commit 710b202

Browse files
committed
fix for sphinx build. add docstring for new arg in add_content()
1 parent 9182e12 commit 710b202

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_displayio_layout/layouts/grid_layout.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ def add_content(
392392
x,y coordinates in grid cells. e.g. (1,0)
393393
:param tuple cell_size: the size and shape that the new cell should
394394
occupy. Width and height in cells inside a tuple e.g. (1, 1)
395+
:param tuple cell_anchor_point: a tuple of floats between 0.0 and 1.0.
396+
If passed, this value will override the cell_anchor_point of the GridLayout
397+
for the single cell having it's content added with this function call. If omitted
398+
then the cell_anchor_point from the GridLayout will be used.
395399
:return: None"""
396400

397401
if cell_anchor_point:
@@ -433,6 +437,6 @@ def cell_size_pixels(self) -> Tuple[int, int]:
433437
re-positioning content within cells.
434438
435439
:return Tuple[int, int]: A tuple containing the (x, y) size in
436-
pixels of a 1x1 cell in the GridLayout
440+
pixels of a 1x1 cell in the GridLayout
437441
"""
438442
return (self._width // self.grid_size[0], self._height // self.grid_size[1])

0 commit comments

Comments
 (0)