code: def on_menu(self, event):
          '''handle menu selections'''
          state = self.state
          ret = self.menu.find_selected(event)
          if ret is None:
              return
          ret.call_handler()
          state.child_pipe_send.send(retf on_menu(self, event):
          '''handle menu selections'''
          state = self.state
          ret = self.menu.find_selected(event)
          if ret is None:
              return
          ret.call_handler()
          state.child_pipe_send.send(ret)
docs: handle menu selections