WaitInterval.py 502 B

123456789101112131415161718
  1. """WaitInterval module: contains the WaitInterval class"""
  2. from PandaModules import *
  3. from Interval import *
  4. class WaitInterval(Interval):
  5. # Name counter
  6. waitNum = 1
  7. # Class methods
  8. def __init__(self, duration, name=None):
  9. """__init__(duration, name)
  10. """
  11. # Generate unique name if necessary
  12. if (name == None):
  13. name = 'Wait-%d' % WaitInterval.waitNum
  14. WaitInterval.waitNum += 1
  15. # Initialize superclass
  16. Interval.__init__(self, name, duration)