Skip to content

Commit e93f766

Browse files
Remove usage of max_glyphs with Label
1 parent ee54c67 commit e93f766

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

adafruit_clue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def __init__( # pylint: disable=too-many-arguments
110110
title = label.Label(
111111
self._font,
112112
text=title,
113-
max_glyphs=60,
114113
color=title_color,
115114
scale=title_scale,
116115
)
@@ -137,7 +136,7 @@ def __getitem__(self, item):
137136

138137
def add_text_line(self, color=0xFFFFFF):
139138
"""Adds a line on the display of the specified color and returns the label object."""
140-
text_label = self._label.Label(self._font, text="", max_glyphs=45, color=color)
139+
text_label = self._label.Label(self._font, text="", color=color)
141140
text_label.x = 0
142141
text_label.y = self._y
143142
self._y = text_label.y + 13

examples/advanced_examples/clue_ams_remote_advanced.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@
5959

6060
group = displayio.Group()
6161

62-
title = label.Label(font=arial16, x=15, y=25, text="_", color=0xFFFFFF, max_glyphs=30)
62+
title = label.Label(font=arial16, x=15, y=25, text="_", color=0xFFFFFF)
6363
group.append(title)
6464

65-
artist = label.Label(font=arial16, x=15, y=50, text="_", color=0xFFFFFF, max_glyphs=30)
65+
artist = label.Label(font=arial16, x=15, y=50, text="_", color=0xFFFFFF)
6666
group.append(artist)
6767

68-
album = label.Label(font=arial16, x=15, y=75, text="_", color=0xFFFFFF, max_glyphs=30)
68+
album = label.Label(font=arial16, x=15, y=75, text="_", color=0xFFFFFF)
6969
group.append(album)
7070

71-
player = label.Label(font=arial16, x=15, y=100, text="_", color=0xFFFFFF, max_glyphs=30)
71+
player = label.Label(font=arial16, x=15, y=100, text="_", color=0xFFFFFF)
7272
group.append(player)
7373

7474
volume = Rect(15, 170, 210, 20, fill=0x0, outline=0xFFFFFF)

0 commit comments

Comments
 (0)