pymasep.interface.ui_simple_input
Classes
Simple input with label and a value to write |
Module Contents
- class pymasep.interface.ui_simple_input.UISimpleInput(relative_rect, manager, container, label_text, waited_type, error_resource)
Bases:
pymasep.interface.ui_input.UIInputSimple input with label and a value to write
- Parameters:
relative_rect (pygame.Rect) – Position and size of the input
manager (pygame_gui.core.interfaces.IUIManagerInterface) – Manager (from pygame_gui)
container (pygame_gui.core.interfaces.IContainerLikeInterface) – Container of the UIInput (form pygame_gui)
label_text (str) – Text of the label
waited_type (type) – Expected type of the value
error_resource (pygame.image) – Image displayed when an error occurs
- text_entry_pos
position and size of the input
- text_entry_line
UI element
- set_text(text)
Set the value of the input as string
- Parameters:
text (str) – Value of the input
- get_text()
Get the value of the input
- Returns:
Value of the input as string
- Return type:
str