MenuStyle¶
-
class
consolemenu.format.MenuStyle(margins=None, padding=None, border_style=None, border_style_type=None, border_style_factory=None)[source]¶ Class for specifying all menu styling, such as margins, padding, and border style.
Parameters: - margins (
MenuMargins) – The menu margin settings. - padding (
MenuPadding) – The menu padding. - ( (border_style) – obj:MenuBorderStyle`): The menu border style. Takes precedence over border_style_type if both are specified.
- border_style_type (int) – The border style type as defined by
MenuBorderStyleType. - border_style_factory (
MenuBorderStyleFactory) – The factory instance to use to create the borders.
-
border_style¶ The border style instance.
Returns: The MenuBorderStyle instance. Return type: MenuBorderStyle
-
border_style_factory¶ The border style factory instance.
Returns: The MenuBorderStyleFactory instance. Return type: MenuBorderStyleFactory
-
margins¶ The margins instance.
Returns: The MenuMargins instance. Return type: MenuMargins
-
padding¶ The padding instance.
Returns: The MenuPadding instance. Return type: MenuPadding
- margins (