Skip to content

Commit aeea65e

Browse files
committed
Docs Corrections
1 parent 246f78e commit aeea65e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

adafruit_display_text/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ class LabelBase(Group):
189189
tab character
190190
:param str label_direction: string defining the label text orientation. There are 5
191191
configurations possibles ``LTR``-Left-To-Right ``RTL``-Right-To-Left
192-
``TTB``-Top-To-Bottom ``UPR``-Upwards ``DWR``-Downwards and ``UPD``-Upside-Down
193-
(bitmap_label only). It defaults to ``LTR``"""
192+
``TTB``-Top-To-Bottom ``UPR``-Upwards ``DWR``-Downwards``DWR``-Downwards and
193+
``UPD``-Upside-Down only avalaible for bitmap_label. It defaults to ``LTR``"""
194194

195195
# pylint: disable=unused-argument, too-many-instance-attributes, too-many-locals, too-many-arguments
196196
def __init__(
@@ -384,7 +384,6 @@ def bounding_box(self) -> Tuple[int, int]:
384384
first two numbers are offset from the x, y origin of this group"""
385385
return tuple(self._bounding_box)
386386

387-
# pylint: disable=no-member
388387
@property
389388
def line_spacing(self) -> float:
390389
"""The amount of space between lines of text, in multiples of the font's

adafruit_display_text/bitmap_label.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,13 @@ class Label(LabelBase):
4040
This method is memory-conserving relative to ``label.py``.
4141
The ``max_glyphs`` parameter is ignored and is present
4242
only for direct compatibility with label.py.
43-
4443
For further reduction in memory usage, set ``save_text=False`` (text string will not
4544
be stored and ``line_spacing`` and ``font`` are immutable with ``save_text``
4645
set to ``False``).
47-
4846
The origin point set by ``x`` and ``y``
4947
properties will be the left edge of the bounding box, and in the center of a M
5048
glyph (if its one line), or the (number of lines * linespacing + M)/2. That is,
5149
it will try to have it be center-left as close as possible.
52-
5350
:param Font font: A font class that has ``get_bounding_box`` and ``get_glyph``.
5451
Must include a capital M for measuring character size.
5552
:param str text: Text to display

0 commit comments

Comments
 (0)