.. _f-pygamehelper: module ``helpers.pygame_helper`` ================================ Short summary +++++++++++++ module ``ensae_teaching_cs.helpers.pygame_helper`` pygame helpers The module pygame is not imported in this module but sent to every function as a parameter to avoid importing the module if not needed. :githublink:`%|py|9` Functions +++++++++ +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +=================================================================================================+===============================================================================================================+ | :func:`build_diff_image ` | Builds an image to show a difference between two lists, we assume these list contain distinct items. | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :func:`empty_main_loop ` | Removes all events in the main loop, a mouse click make the program halt, another click makes it start again. | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :func:`get_pygame_screen_font ` | Creates a surface with :epkg:`pygame`, initialize the module, creates font. | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :func:`wait_event ` | The function waits for an event, a | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: ensae_teaching_cs.helpers.pygame_helper :members: :special-members: __init__ :show-inheritance: