def handleEvent(self, e):
    'Process relevant events.'
    for i in self.menu.elem:
        i.handleEvent(e)
    if self.menu.elem[0].isPressed():
        self.fading = True
    elif self.menu.elem[1].isPressed():
        self.is_open = False
Process relevant events.
def handleEvent(self, e):
    
    for i in self.menu.elem:
        i.handleEvent(e)
    if self.menu.elem[0].isPressed():
        self.fading = True
    elif self.menu.elem[1].isPressed():
        self.is_open = False