VMargin

class pygame_menu.widgets.VMargin[source]

Bases: pygame_menu.widgets.core.widget.Widget

Vertical margin widget.

draw(surface)[source]

Draw the widget shape.

Parameters:surface (pygame.Surface) – Surface to draw
Returns:None
update(events)[source]

Update internal variable according to the given events list and fire the callbacks.

Parameters:events (list[pygame.event.Event]) – List of pygame events
Returns:True if updated
Return type:bool