parameters: (self, quantity=None)
docstring: updateSpinBox(quantity=None) ... update the display value of the spin box.
          If no value is provided the value of the bound property is used.
          quantity can be of type Quantity or Float.
docstring_summary: updateSpinBox(quantity=None) ... update the display value of the spin box.
          If no value is provided the value of the bound property is used.
          quantity can be of type Quantity or Float.
docstring_tokens: updateSpinBox ( quantity = None ) ... update the display value of the spin box . If no value is provided the value of the bound property is used . quantity can be of type Quantity or Float .
function: def updateSpinBox(self, quantity=None):
          """updateSpinBox(quantity=None) ... update the display value of the spin box.
          If no value is provided the value of the bound property is used.
          quantity can be of type Quantity or Float."""
          PathLog.track(self.prop, self.valid)
  
          if self.valid:
              expr = self._hasExpression()
              if quantity is None:
                  if expr:
                      quantity = FreeCAD.Units.Quantity(self.obj.evalExpression(expr))
                  else:
                      quantity = PathUtil.getProperty(self.obj, self.prop)
              value = quantity.Value if hasattr(quantity, "Value") else quantity
              self.widget.setProperty("rawValue", value)
function_tokens: def updateSpinBox ( self , quantity = None ) : PathLog . track ( self . prop , self . valid ) if self . valid : expr = self . _hasExpression ( ) if quantity is None : if expr : quantity = FreeCAD . Units . Quantity ( self . obj . evalExpression ( expr ) ) else : quantity = PathUtil . getProperty ( self . obj , self . prop ) value = quantity . Value if hasattr ( quantity , "Value" ) else quantity self . widget . setProperty ( "rawValue" , value )