Dimension

class consolemenu.menu_component.Dimension(width=0, height=0, dimension=None)[source]

The Dimension class encapsulates the height and width of a component.

Parameters:
  • width (int) – the width of the Dimension, in columns.
  • height (int) – the height of the Dimension, in rows.
  • dimension (Dimension, optional) – an existing Dimension from which to duplicate the height and width.