From 1a3fc8ad14707ab0dfd938b56cca6e22f6e50f29 Mon Sep 17 00:00:00 2001 From: Neradoc Date: Tue, 23 Feb 2021 06:16:10 +0100 Subject: [PATCH] fix the dosctring for text_anchor_point The space in the tuple: `:param (float, float) text_anchor_point:` mangles the display: `float) text_anchor_point ((float,)` instead of `text_anchor_point ((float,float)) ` Fixed formatting by looking at other source code (anchor_point in adafruit_display_text), not tested. --- adafruit_portalbase/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_portalbase/__init__.py b/adafruit_portalbase/__init__.py index d3d29a1..95d0bd4 100755 --- a/adafruit_portalbase/__init__.py +++ b/adafruit_portalbase/__init__.py @@ -166,7 +166,7 @@ def add_text( :param text_transform: A function that will be called on the text before display :param int text_scale: The factor to scale the default size of the text by :param float line_spacing: The factor to space the lines apart - :param (float, float) text_anchor_point: Values between 0 and 1 to indicate where the text + :param (float,float) text_anchor_point: Values between 0 and 1 to indicate where the text position is relative to the label :param bool is_data: If True, fetch will attempt to update the label """