betfsm.Ctrl_C_Condition

Bases: Condition

Check whether CTRL_C events come in

__init__(event='CTRL_C', repeated=3, consume=True)

Parameters:
  • event

    the name of the event to return if Ctrl-C was pressed

  • repeated

    if the users presses repeated times Ctrl-C, the original Ctrl-C handler will be called and the program will be interrupted.

  • consume

    if true, the ctrl-c event will be consumed, i.e. if asked again this object will return None.