Skip to content

Commit 7868b40

Browse files
committed
fix typo
1 parent eae4cb4 commit 7868b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_display_text/label.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Label(displayio.Group):
5757
:param int color: Color of all text in RGB hex
5858
:param double line_spacing: Line spacing of text to display"""
5959
def __init__(self, font, *, x=0, y=0, text=None, max_glyphs=None, color=0xffffff,
60-
backgroud_color=False, line_spacing=1.25, **kwargs):
60+
background_color=False, line_spacing=1.25, **kwargs):
6161
if not max_glyphs and not text:
6262
raise RuntimeError("Please provide a max size, or initial text")
6363
if not max_glyphs:
@@ -71,10 +71,10 @@ def __init__(self, font, *, x=0, y=0, text=None, max_glyphs=None, color=0xffffff
7171
self.y = y
7272

7373
self.palette = displayio.Palette(2)
74-
if not backgroud_color:
74+
if not background_color:
7575
self.palette.make_transparent(0)
7676
else:
77-
self.palette[0] = backgroud_color
77+
self.palette[0] = background_color
7878
self.palette[1] = color
7979

8080
bounds = self.font.get_bounding_box()

0 commit comments

Comments
 (0)