pymasep.interface.ui_input ========================== .. py:module:: pymasep.interface.ui_input Classes ------- .. autoapisummary:: pymasep.interface.ui_input.UIInput Module Contents --------------- .. py:class:: UIInput(relative_rect, manager, container, label_text, waited_type, error_resource) Bases: :py:obj:`pygame_gui.core.UIContainer` General and abstract input with label and a value to write or select :param relative_rect: position and size of the input :param manager: Manager (from pygame_gui) :param container: Container of the UIInput (form pygame_gui) :param label_text: Text of the label :param waited_type: Expected type of the value :param error_resource: Image displayed when an error occurs .. py:attribute:: font_info .. py:attribute:: waited_type expected type of the input value .. py:attribute:: validated :value: True is the input valid .. py:attribute:: error_pos position and size of the error icon .. py:attribute:: label_pos position of the label .. py:attribute:: _ .. py:attribute:: error_image error image displayed when an error occurs .. py:attribute:: error ui image for error .. py:method:: set_text(text) :abstractmethod: Set the text of the input. To implement on subclasses. :param text: Text of the input .. py:method:: get_text() :abstractmethod: Set the text of the input. To implement on subclasses. :return: Text of the input .. py:method:: update(time_delta) Update on validating value input :param time_delta: Time passed since the last call .. py:method:: validate() Validate if the value of the UIInput respects some constraints :return: True if the value is valid