microGUI.Types.Dim

Classes

DimType

Dimensions of an area.

Module Contents

class microGUI.Types.Dim.DimType(w: int = None, h: int = None)

Dimensions of an area.

The DimType structure defines the dimensions of an area. It contains at least the following members:

See also

  • microGUI.Widgets.Widget.Size

Parameters:
  • w (int) – Width of the area.

  • h (int) – Height of the area.

property w: int

Width of the area.

Getter:

Get w property

Setter:

Set w property

Raises:

TypeError – When not w is not set with int type

Return type:

int

property h: int

Height of the area.

Getter:

Get h property

Setter:

Set h property

Raises:

TypeError – When not h is not set with int type

Return type:

int