class StateClosing(State):
# TODO: share code with StateOpening, and possibly also with the nerv-mechanism from StateAboutToOpen
def __init__(self,callback,sm):
class StateClosing(State):
# TODO: share code with StateOpening, and possibly also with the nerv-mechanism from StateAboutToOpen
def __init__(self,callback,sm):