console-menu
stable
  • Installation
  • Usage
  • API Reference
    • ConsoleMenu — Standard menu class
    • SelectionMenu — Quickly get a selection
    • MultiSelectMenu — Make multiple selections at one prompt
    • Items
    • Functions
    • Screen
    • Menu Components
    • Formatting
      • MenuBorderStyle
      • MenuBorderStyleType
      • MenuBorderStyleFactory
      • Menu Borders
      • MenuMargins
      • MenuPadding
      • MenuStyle
    • Prompts
console-menu
  • Docs »
  • API Reference »
  • Formatting »
  • MenuPadding
  • Edit on GitHub

MenuPadding¶

class consolemenu.format.MenuPadding(top=1, left=2, bottom=1, right=2)[source]¶

Class for menu padding. Padding is the area between the menu border and the content of the menu.

Parameters:
  • top (int) – The top padding.
  • left (int) – The left padding.
  • bottom (int) – The bottom padding.
  • right (int) – The right padding.
bottom¶

The bottom padding.

Returns:The bottom padding.
Return type:int
left¶

The left padding.

Returns:The left padding.
Return type:int
right¶

The right padding.

Returns:The right padding.
Return type:int
top¶

The top padding.

Returns:The top padding.
Return type:int
Next Previous

© Copyright 2018, Aegir Hall, 2015, Paul Barrett Revision f6b00890.

Built with Sphinx using a theme provided by Read the Docs.