Skip to content

Commit af1c7d8

Browse files
committed
Made some of Scott's suggestions
1 parent 9a2abce commit af1c7d8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

adafruit_matrixportal/matrixportal.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def add_text(
149149
"""
150150
if text_font:
151151
if text_font is terminalio.FONT:
152-
self._text_font = terminalio.FONT
152+
self._text_font = text_font
153153
else:
154154
self._text_font = bitmap_font.load_font(text_font)
155155
if not text_wrap:
@@ -254,14 +254,7 @@ def set_text(self, val, index=0):
254254
if self._text[index] is not None:
255255
print("Replacing text area with :", string)
256256
self._text[index].text = string
257-
# return
258-
# try:
259257
text_index = self.splash.index(self._text[index])
260-
# except AttributeError:
261-
# for i in range(len(self.splash)):
262-
# if self.splash[i] == self._text[index]:
263-
# text_index = i
264-
# break
265258

266259
self._text[index] = Label(
267260
self._text_font, text=string, max_glyphs=max_glyphs

0 commit comments

Comments
 (0)