parameters: (self)
docstring: This keeps the scroll region within the screen region.
docstring_summary: This keeps the scroll region within the screen region.
docstring_tokens: This keeps the scroll region within the screen region .
function: def scroll_constrain (self):
          '''This keeps the scroll region within the screen region.'''
  
          if self.scroll_row_start <= 0:
              self.scroll_row_start = 1
          if self.scroll_row_end > self.rows:
              self.scroll_row_end = self.rows
function_tokens: def scroll_constrain ( self ) : if self . scroll_row_start <= 0 : self . scroll_row_start = 1 if self . scroll_row_end > self . rows : self . scroll_row_end = self . rows