code: def get_cycles(self):
          
          idx_cyc_sel = [
                  int(x.text()) - 1 for x in self.idx_cycle.selectedItems()]
          if not idx_cyc_sel:
              cycle = None
          else:
              cycle = itemgetter(*idx_cyc_sel)(self.cycles)
              if len(idx_cyc_sel) == 1:
                  cycle = [cycle]
  
          return cycle
docs: Get the selected cycle(s in order).
  
          Returns
          -------
          list of tuple
              Each tuple is (start time (sec), end time (sec), index (starting
              at 1).