GimpUi.Ruler.set_unit

@accepts(GimpUi.Ruler, Gimp.Unit)
@returns(none)
def set_unit(self, unit):
    # Python wrapper for gimp_ruler_set_unit()
  

This sets the unit of the ruler.

Since 2.8

self

a GimpUi.Ruler

unit

the Gimp.Unit to set the ruler to