earwax.credit module

Provides the Credit class.

class earwax.credit.Credit(name: str, url: str, sound: Optional[pathlib.Path] = None, loop: bool = True)

Bases: object

A credit in a game.

Variables:
  • name

    The name of the person or company who is being credited.

    This value will be shown in a menu generated by earwax.Menu.from_credits().

  • url – The URL to open when this credit is selected.
  • sound – An optional sound to play while this credit is shown.
  • loop – Whether ot not to loop sound.
classmethod earwax_credit() → earwax.credit.Credit

Get an earwax credit.