code: def coordinate(self, panes=[], index=0):
          y = 0
          for i, element in enumerate(self.panes):
              x = 0
              if isinstance(element, list):
                  current_height = 0
                  for j, pane in enumerate(element):
                      if pane.hidden: continue
                      current_width  = pane.width
                      current_height = pane.height
                      upper          = ((y, x), (y, x+current_width))
                      lower          = ((y+(current_height if current_height > 1 else 0), x),
                                        (y+(current_height if current_height > 1 else 0), x+current_width))
                      pane.coords    = [upper, lower]
                      x += current_width
                  y += (current_height+1 if current_height > 1 else 1)
              else:
                  if element.hidden: continue
                  current_width  = element.width
                  current_height = element.height
                  upper          = ((y, x), (y, x+current_width))
                  lower          = ((y+(current_height if current_height > 1 else 0), x),
                                    (y+(current_height if current_height > 1 else 0), x+current_width))
                  element.coords = [upper, lower]
                  y += (current_height+1 if current_height > 1 else 1)
              if self.debug:
                  coordinates = "Coordinates: " + str([p.coords for p in self])
                  if len(coordinates) > self.width:
                      coordinates  = coordinates[:self.width - 3]
                      coordinates += '...'
                  self.addstr(self.height-3, 0, coordinates)