def SetAlpha(self, value):
    try:
      value = float(value)
    except __HOLE__:
      raise DialogException('Alpha value %s is not a float.' % value)
    if value < 0 or value > 1.0:
      raise DialogException('Alpha value %s is not between 0 and 1' % value)
    self._alpha = value
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/cocoadialog.py/Bubble.SetAlpha