pymasep.interface.ui_init_object_window ======================================= .. py:module:: pymasep.interface.ui_init_object_window Classes ------- .. autoapisummary:: pymasep.interface.ui_init_object_window.UIInitObjectWindow Module Contents --------------- .. py:class:: UIInitObjectWindow(rect, ui_manager, sub_application, object_to_init_name) Bases: :py:obj:`pygame_gui.elements.UIWindow` Windows used by the user to initialize one object or agent (Characteristics in state "init") :param rect: Position and size of the window :param ui_manager: Manager (from pygame_gui) :param sub_application: the sub application (interface) that will handle the window :param object_to_init_name: name of the Object or Agent to init .. py:method:: _get_initializer_for_charac(charac) Get the initializer from the charac, or from it's ObjectState or from its Object. :param charac: Characteristic :return: the initializer for the charac .. py:method:: _get_object_to_init() .. py:attribute:: sub_application interface application .. py:attribute:: object_to_init_name name of the agent to init .. py:attribute:: entries ui entries to initialize the characteristics .. py:attribute:: font_info font information to calcutate sizes .. py:attribute:: margin margin of the window .. py:attribute:: active_player_label name of the player to initialize the characteristics .. py:attribute:: center_x .. py:attribute:: pos_y .. py:attribute:: object_to_init .. py:attribute:: charac_to_init .. py:attribute:: containers_to_init .. py:attribute:: button_rect .. py:attribute:: button_validation button to validate the initialization .. py:method:: process_event(event) Process the events of the windows. UI_BUTTON_PRESSED is handling on this method. :param event: Event to process :return: True if the event has been processed .. py:method:: update(time_delta) Update the element of the window according to the value of the shared Characteristics. :param time_delta: Time passed since the last call