@@ -344,7 +344,13 @@ def display_card(self, card_num: int) -> int:
344
344
"Could not find card with matching 'card_id': " , destination_card_id
345
345
)
346
346
347
- def play_sound (self , filename : Optional [str ], * , wait_to_finish : bool = True , loop : bool = False ) -> None :
347
+ def play_sound (
348
+ self ,
349
+ filename : Optional [str ],
350
+ * ,
351
+ wait_to_finish : bool = True ,
352
+ loop : bool = False
353
+ ) -> None :
348
354
"""Play a sound
349
355
350
356
:param filename: The filename of the sound to play. Use `None` to stop
@@ -380,7 +386,12 @@ def play_sound(self, filename: Optional[str], *, wait_to_finish: bool = True, lo
380
386
self ._wavfile = None
381
387
self ._speaker_enable .value = False
382
388
383
- def set_text (self , text : Optional [str ], color : Optional [str ], background_color : Optional [int ] = None ) -> None :
389
+ def set_text (
390
+ self ,
391
+ text : Optional [str ],
392
+ color : Optional [str ],
393
+ background_color : Optional [int ] = None ,
394
+ ) -> None :
384
395
"""Display the test for a card.
385
396
386
397
:param text: the text to display
@@ -389,7 +400,6 @@ def set_text(self, text: Optional[str], color: Optional[str], background_color:
389
400
:type color: str or None
390
401
:param background_color: the background color of the text
391
402
:type background_color: int or None
392
-
393
403
"""
394
404
if self ._text_group :
395
405
self ._text_group .pop ()
@@ -417,7 +427,9 @@ def set_text(self, text: Optional[str], color: Optional[str], background_color:
417
427
self ._text .background_color = background_color
418
428
self ._text_group .append (self ._text )
419
429
420
- def set_background (self , filename : Optional [str ], * , with_fade : bool = True ) -> None :
430
+ def set_background (
431
+ self , filename : Optional [str ], * , with_fade : bool = True
432
+ ) -> None :
421
433
"""The background image to a bitmap file.
422
434
423
435
:param filename: The filename of the chosen background
0 commit comments