File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
adafruit_displayio_layout/layouts Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,10 @@ def add_content(
392
392
x,y coordinates in grid cells. e.g. (1,0)
393
393
:param tuple cell_size: the size and shape that the new cell should
394
394
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.
395
399
:return: None"""
396
400
397
401
if cell_anchor_point :
@@ -433,6 +437,6 @@ def cell_size_pixels(self) -> Tuple[int, int]:
433
437
re-positioning content within cells.
434
438
435
439
: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
437
441
"""
438
442
return (self ._width // self .grid_size [0 ], self ._height // self .grid_size [1 ])
You can’t perform that action at this time.
0 commit comments