code: def set_value(self, value):
          
          v = 0
          measure_unit = 'px'
          try:
              v = int(float(value.replace('px', '')))
          except ValueError:
              try:
                  v = int(float(value.replace('%', '')))
                  measure_unit = '%'
              except ValueError:
                  pass
          self.numInput.set_value(v)
          self.dropMeasureUnit.set_value(measure_unit)
docs: The value have to be in the form '10px' or '10%', so numeric value plus measure unit