Skip to main content

GaugeNeedlePointer

A needle that starts at the center of the gauge and narrows to a tip.

Inherits: GaugePointer

Properties

  • color - The fill color of the needle.
  • length - The distance from the center of the gauge to the tip of the needle, in logical pixels.
  • tail_length - The length of the tail extending behind the center of the gauge, opposite the tip, in logical pixels.
  • width - The width of the needle at the center of the gauge, in logical pixels.

Properties​

colorclass-attributeinstance-attribute​

color: ColorValue | None = None

The fill color of the needle.

Defaults to ColorScheme.on_surface.

lengthclass-attributeinstance-attribute​

length: Number = 60.0

The distance from the center of the gauge to the tip of the needle, in logical pixels.

Raises:

  • ValueError - If it is not strictly greater than 0.

tail_lengthclass-attributeinstance-attribute​

tail_length: Number = 0.0

The length of the tail extending behind the center of the gauge, opposite the tip, in logical pixels.

Raises:

  • ValueError - If it is not greater than or equal to 0.

widthclass-attributeinstance-attribute​

width: Number = 8.0

The width of the needle at the center of the gauge, in logical pixels.

Raises:

  • ValueError - If it is not strictly greater than 0.