Bruno Desthuilliers wrote:

>      try:
>          if int(text) <= 0: raise ValueError
>      except ValueError:
>          self.error_message()
>          return False
>      else:
>          return True

Nice! Thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to