@@ -160,13 +160,13 @@ def sample(population, k):
160160font = bitmap_font .load_font ("/GothamBlack-54.bdf" )
161161
162162# Create a Group for the BLM text
163- blm_group = displayio .Group (max_size = 10 )
163+ blm_group = displayio .Group ()
164164display .show (blm_group )
165165
166166# Create a 3 line set of text for BLM
167167blm_font = [None , None , None ]
168168for line in range (3 ):
169- label = adafruit_display_text .label .Label (font , color = 0xFFFFFF , max_glyphs = 16 )
169+ label = adafruit_display_text .label .Label (font , color = 0xFFFFFF )
170170 label .anchor_point = (0 , 0 )
171171 label .anchored_position = (8 , line * 84 + 8 )
172172 blm_font [line ] = label
@@ -186,18 +186,14 @@ def sample(population, k):
186186# Create a 2 line set of font text for names
187187names_font = [None , None ]
188188for line in range (2 ):
189- label = adafruit_display_text .label .Label (
190- font ,
191- color = 0xFFFFFF ,
192- max_glyphs = 16 ,
193- )
189+ label = adafruit_display_text .label .Label (font , color = 0xFFFFFF )
194190 # Center each line horizontally, position vertically
195191 label .anchor_point = (0.5 , 0 )
196192 label .anchored_position = (200 , line * 84 + 42 )
197193 names_font [line ] = label
198194
199195# Create a Group for the name text
200- name_group = displayio .Group (max_size = 10 )
196+ name_group = displayio .Group ()
201197for line in names_font :
202198 name_group .append (line )
203199
0 commit comments