File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 22
22
"""
23
23
`adafruit_display_text.label`
24
24
====================================================
25
+
25
26
Displays text labels using CircuitPython's displayio.
27
+
26
28
* Author(s): Scott Shawcroft
29
+
27
30
Implementation Notes
28
31
--------------------
32
+
29
33
**Hardware:**
30
34
**Software and Dependencies:**
35
+
31
36
* Adafruit CircuitPython firmware for the supported boards:
32
37
https://github.com/adafruit/circuitpython/releases
38
+
33
39
"""
34
40
35
41
import displayio
@@ -43,17 +49,14 @@ class Label(displayio.Group):
43
49
properties will be the left edge of the bounding box, and in the center of a M
44
50
glyph (if its one line), or the (number of lines * linespacing + M)/2. That is,
45
51
it will try to have it be center-left as close as possible.
46
-
52
+
47
53
:param Font font: A font class that has ``get_bounding_box`` and ``get_glyph``.
48
54
Must include a capital M for measuring character size.
49
55
:param str text: Text to display
50
56
:param int max_glyphs: The largest quantity of glyphs we will display
51
57
:param int color: Color of all text in RGB hex
52
58
:param double line_spacing: Line spacing of text to display"""
53
59
54
- # pylint: disable=too-many-instance-attributes
55
- # This has several getters and setters, maybe needs to be cleaned up.
56
-
57
60
def __init__ (
58
61
self ,
59
62
font ,
You can’t perform that action at this time.
0 commit comments