TankMeter Documentation

TankMeter class

class pygameyagui.TankMeter(toolbox, label)

This class creates a TankMeter widget.

Parameters:
  • toolbox (pygameyagui.Toolbox) – The toolbox that will host the widget.

  • label (str) – The text to be shown in the TankMeter widget.

Inheritance

TankMeter class inherits from Interval class.

TankMeter methods

TankMeter.hide_extreme_marks()

Use this to hide the tick marks and labels for the lower_bound and upper_bound values.

See also: pygameyagui.Numeric.lower_bound and pygameyagui.Numeric.upper_bound

Return type:

NoneType

TankMeter.hide_color_marks()

Use this to hide the tick marks and labels for the color_limits values.

See also: pygameyagui.Inteval.color_limits

Return type:

NoneType

TankMeter.hide_all_marks()

Use this to hide all tick marks and labels.

Return type:

NoneType

TankMeter.show_all_marks()

Use this to show all tick marks and labels.

Return type:

NoneType

TankMeter properties

Nothing to see here

TankMeter class has no properties.

TankMeter constants

constants.TANKMETER_MIN_SIZE_FACTOR = 3
constants.TANKMETER_MAX_SIZE_FACTOR = 5
constants.TANKMETER_DEFAULT_SIZE_FACTOR = 4