WidgetManager
- class pygame_menu._widgetmanager.WidgetManager(menu)[source]
Add/Remove widgets to the Menu.
- Parameters
menu (
Menu
) – Menu reference
- configure_defaults_widget(widget)[source]
Apply default menu settings to widget. This method does not add widget to the Menu.
- generic_widget(widget, configure_defaults=False)[source]
Add generic widget to the Menu.
Note
The widget should be fully configured by the user: font, padding, etc.
Note
This is applied only to the base Menu (not the currently displayed, stored in
_current
pointer); for such behaviour apply topygame_menu.menu.Menu.get_current()
object.Warning
Unintended behaviours may happen while using this method, use only with caution; specially while creating nested submenus with buttons.