code: def flip(self, n_windows):
          
  
          assert n_windows >= 0
          self.page_index += (self.step * n_windows)
          self.cursor_index = n_windows
          self.inverted = not self.inverted
          self.top_item_height = None
docs: Flip the orientation of the page.