code: def _build_layout(self):
          " Rebuild a new Container object and return that. "
          logger.info('Rebuilding layout.')
  
          if not self.pymux.arrangement.windows:
              # No Pymux windows in the arrangement.
              return Window()
  
          active_window = self.pymux.arrangement.get_active_window()
  
          # When zoomed, only show the current pane, otherwise show all of them.
          if active_window.zoom:
              return to_container(_create_container_for_process(
                  self.pymux, active_window, active_window.active_pane, zoom=True))
          else:
              window = self.pymux.arrangement.get_active_window()
              return HSplit([
                  # Some spacing for the top status bar.
                  ConditionalContainer(
                      content=Window(height=1),
                      filter=Condition(lambda: self.pymux.enable_pane_status)),
                  # The actual content.
                  _create_split(self.pymux, window, window.root)
              ]f _build_layout(self):
          " Rebuild a new Container object and return that. "
          logger.info('Rebuilding layout.')
  
          if not self.pymux.arrangement.windows:
              # No Pymux windows in the arrangement.
              return Window()
  
          active_window = self.pymux.arrangement.get_active_window()
  
          # When zoomed, only show the current pane, otherwise show all of them.
          if active_window.zoom:
              return to_container(_create_container_for_process(
                  self.pymux, active_window, active_window.active_pane, zoom=True))
          else:
              window = self.pymux.arrangement.get_active_window()
              return HSplit([
                  # Some spacing for the top status bar.
                  ConditionalContainer(
                      content=Window(height=1),
                      filter=Condition(lambda: self.pymux.enable_pane_status)),
                  # The actual content.
                  _create_split(self.pymux, window, window.root)
              ])
docs: Rebuild a new Container object and return that.