def __init__(self): State.__init__(self, 'wait') self.timer = PoolingTimer(self.app.config.getfloat('WINDOW', 'animate_delay')) if self.app.config.getfloat('WINDOW', 'final_image_delay') < 0: self.final_display_timer = None else: self.final_display_timer = PoolingTimer(self.app.config.getfloat('WINDOW', 'final_image_delay'))
def __init__(self, timeout): State.__init__(self, 'choose') self.timer = PoolingTimer(timeout)
def __init__(self): State.__init__(self, 'wait')
def __init__(self, timeout): State.__init__(self, 'failsafe') self.timer = PoolingTimer(timeout)
def __init__(self, timeout): State.__init__(self, 'finish') self.timer = PoolingTimer(timeout)
def __init__(self): State.__init__(self, 'print') self.timer = PoolingTimer(self.app.config.getfloat('PRINTER', 'printer_delay')) self.printed = False
def __init__(self): State.__init__(self, 'processing')
def __init__(self): State.__init__(self, 'capture') self.count = 0
def __init__(self): State.__init__(self, 'wait') self.timer = PoolingTimer(self.app.config.getfloat('WINDOW', 'animate_delay'))
def __init__(self): State.__init__(self, 'wait', 'choose')
def __init__(self): State.__init__(self, 'capture', 'processing')
def __init__(self, timeout): State.__init__(self, 'chosen', 'capture') self.timer = PoolingTimer(timeout)