Skip to content

Commit 6905986

Browse files
Remove max_size parameter
1 parent 3fb9fef commit 6905986

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

adafruit_clue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __init__( # pylint: disable=too-many-arguments
100100
if font:
101101
self._font = font
102102

103-
self.text_group = displayio.Group(max_size=20, scale=text_scale)
103+
self.text_group = displayio.Group(scale=text_scale)
104104

105105
if title:
106106
# Fail gracefully if title is longer than 60 characters.

examples/advanced_examples/clue_ams_remote_advanced.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
display = board.DISPLAY
5656

57-
group = displayio.Group(max_size=25)
57+
group = displayio.Group()
5858

5959
title = label.Label(font=arial16, x=15, y=25, text="_", color=0xFFFFFF, max_glyphs=30)
6060
group.append(title)

examples/clue_ble_color_patchwork.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ def change_advertisement(color):
137137
color_select_palette[_i] = _color
138138

139139
# Color Select Layout
140-
color_select_group = displayio.Group(max_size=10)
141-
color_select_text_group = displayio.Group(max_size=4, scale=3)
140+
color_select_group = displayio.Group()
141+
color_select_text_group = displayio.Group(scale=3)
142142

143-
# white backrground
143+
# white background
144144
background = Rect(0, 0, 240, 240, fill=0xFFFFFF)
145145
center_line = Rect(119, 0, 2, 180, fill=0x000000)
146146

examples/clue_spirit_level.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from adafruit_clue import clue
99

1010
display = board.DISPLAY
11-
clue_group = displayio.Group(max_size=4)
11+
clue_group = displayio.Group()
1212

1313
outer_circle = Circle(120, 120, 119, outline=clue.WHITE)
1414
middle_circle = Circle(120, 120, 75, outline=clue.YELLOW)
@@ -18,7 +18,7 @@
1818
clue_group.append(inner_circle)
1919

2020
x, y, _ = clue.acceleration
21-
bubble_group = displayio.Group(max_size=1)
21+
bubble_group = displayio.Group()
2222
level_bubble = Circle(int(x + 120), int(y + 120), 20, fill=clue.RED, outline=clue.RED)
2323
bubble_group.append(level_bubble)
2424

0 commit comments

Comments
 (0)