def SetTimeout(self, value):
    try:
      value = int(value)
    except ValueError:
      raise DialogException('Timeout value %s is not an integer.' % value)
    self._timeout = int(value)
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/cocoadialog.py/Dialog.SetTimeout/original