Part of planes.gui.lmr View In Hierarchy
Known subclasses: planes.gui.lmr.LMRButton, planes.gui.lmr.LMROption
Base class for fixed-height, flexible-width widgets with an LMR background.
Additional attributes:
LMRWidget.background
A Pygame Surface, holding the rendered background for this widget.
LMRWidget.style
The LMRStyle instance for this widget.
| Method | __init__ | Initialise LMRWidget.background from width and style given. |
Initialise LMRWidget.background from width and style given. width is the total widget width in pixels. style is an instance of LMRStyle. The height of the LMRWidget is taken from style.left_img.height.