Panel

class Panel(relative_rect: pygame.Rect, starting_layer_height: int, manager: pygame_gui.core.interfaces.manager_interface.IUIManagerInterface, *, element_id: str = 'panel', margins: Optional[Dict[str, int]] = None, container: Optional[pygame_gui.core.interfaces.container_interface.IContainerLikeInterface] = None, parent_element: Optional[pygame_gui.core.ui_element.UIElement] = None, object_id: Optional[Union[pygame_gui.core.ui_element.ObjectID, str]] = None, anchors: Optional[Dict[str, str]] = None, visible: int = 1)[source]

Bases: abc.ABC, pygame_gui.elements.ui_panel.UIPanel

process_event(event: pygame.event.Event)[source]

Gives UI Windows access to pygame events. Derived windows should super() call this class if they implement their own process_event method.

update(time_delta: float)[source]

Update based on current state and data. Run every frame.