@staticmethod
def removeTimeEvent(tm_event):
    "Removes the TimeEvent from the list of active time events.\n        Cancels the TimeEvent's callback if there is one.\n        Schedules the next event's callback if there is one.\n        "
    for (k, v) in Framework._time_events.items():
        if (v is tm_event):
            if (k == min(Framework._time_events.keys())):
                del Framework._time_events[k]
                if Framework._tm_event_handle:
                    Framework._tm_event_handle.cancel()
                if (len(Framework._time_events) > 0):
                    next_expiration = min(Framework._time_events.keys())
                    next_event = Framework._time_events[next_expiration]
                    Framework._tm_event_handle = Framework._event_loop.call_at(next_expiration, Framework.timeEventCallback, next_event, next_expiration)
                else:
                    Framework._tm_event_handle = None
            else:
                del Framework._time_events[k]
            break
Removes the TimeEvent from the list of active time events.
Cancels the TimeEvent's callback if there is one.
Schedules the next event's callback if there is one.
@staticmethod
def removeTimeEvent(tm_event):
    "Removes the TimeEvent from the list of active time events.\n        Cancels the TimeEvent's callback if there is one.\n        Schedules the next event's callback if there is one.\n        "
    for (k, v) in Framework._time_events.items():
        if (v is tm_event):
            if (k == min(Framework._time_events.keys())):
                del Framework._time_events[k]
                if Framework._tm_event_handle:
                    Framework._tm_event_handle.cancel()
                if (len(Framework._time_events) > 0):
                    next_expiration = min(Framework._time_events.keys())
                    next_event = Framework._time_events[next_expiration]
                    Framework._tm_event_handle = Framework._event_loop.call_at(next_expiration, Framework.timeEventCallback, next_event, next_expiration)
                else:
                    Framework._tm_event_handle = None
            else:
                del Framework._time_events[k]
            break