@@ -329,28 +329,25 @@ def show_badge(self, *, background_color=0xFF0000, foreground_color=0xFFFFFF,
329
329
(int (self .display .height * 0.5 )), fill = foreground_color )
330
330
splash .append (rect )
331
331
332
- hello_scale = hello_scale
333
332
hello_group = displayio .Group (scale = hello_scale )
334
333
hello_label = Label (font = hello_font , text = hello_string )
335
- (_ , _ , width , height ) = hello_label .bounding_box
334
+ (_ , _ , width , _ ) = hello_label .bounding_box
336
335
hello_label .x = ((self .display .width // (2 * hello_scale )) - width // 2 )
337
336
hello_label .y = int (self .display .height * (0.117 / hello_scale ))
338
337
hello_label .color = background_text_color
339
338
hello_group .append (hello_label )
340
339
341
- my_name_is_scale = my_name_is_scale
342
340
my_name_is_group = displayio .Group (scale = my_name_is_scale )
343
341
my_name_is_label = Label (font = my_name_is_font , text = my_name_is_string )
344
- (_ , _ , width , height ) = my_name_is_label .bounding_box
342
+ (_ , _ , width , _ ) = my_name_is_label .bounding_box
345
343
my_name_is_label .x = ((self .display .width // (2 * my_name_is_scale )) - width // 2 )
346
344
my_name_is_label .y = int (self .display .height * (0.28 / my_name_is_scale ))
347
345
my_name_is_label .color = background_text_color
348
346
my_name_is_group .append (my_name_is_label )
349
347
350
- name_scale = name_scale
351
348
name_group = displayio .Group (scale = name_scale )
352
349
name_label = Label (font = name_font , text = name_string , line_spacing = 0.75 )
353
- (_ , _ , width , height ) = name_label .bounding_box
350
+ (_ , _ , width , _ ) = name_label .bounding_box
354
351
name_label .x = ((self .display .width // (2 * name_scale )) - width // 2 )
355
352
name_label .y = int (self .display .height * (0.65 / name_scale ))
356
353
name_label .color = foreground_text_color
0 commit comments