psychopy.iohub.util.TimeTrigger

class psychopy.iohub.util.TimeTrigger(start_time, delay, repeat_count=0, trigger_function=<function <lambda> at 0x0555EC30>, user_kwargs={})

Bases: psychopy.iohub.util.visualUtil.Trigger

TimeTrigger’s are used by ScreenState objects. A TimeTrigger associates a delay from the provided start_time parameter to when the classes triggered() method returns True. start_time and delay can each be sec.msec float, or a callable object (that takes no parameters).

__init__(start_time, delay, repeat_count=0, trigger_function=<function <lambda> at 0x0555EC30>, user_kwargs={})

Methods

__init__(start_time, delay[, repeat_count, ...])
clearEventHistory()
getTriggeredStateCallback()
getTriggeringEvent()
resetLastTriggeredInfo()
resetTrigger()
triggered()

Attributes

delay
repeat_count
start_time
trigger_function
triggerred_count
user_kwargs