parameters: (self)
return_statement: return pygame.Rect(x, y, self.rect.w, self.rect.h)
docstring: Returns the absolute rect of this widget on the App screen.
docstring_summary: Returns the absolute rect of this widget on the App screen.
docstring_tokens: Returns the absolute rect of this widget on the App screen .
function: def get_abs_rect(self):
          """Returns the absolute rect of this widget on the App screen."""
          x, y = self.rect.x, self.rect.y
          cnt = self.container
          while cnt:
              x += cnt.rect.x
              y += cnt.rect.y
              if cnt._rect_content:
                  x += cnt._rect_content.x
                  y += cnt._rect_content.y
              cnt = cnt.container
          return pygame.Rect(x, y, self.rect.w, self.rect.h)
function_tokens: def get_abs_rect ( self ) : x , y = self . rect . x , self . rect . y cnt = self . container while cnt : x += cnt . rect . x y += cnt . rect . y if cnt . _rect_content : x += cnt . _rect_content . x y += cnt . _rect_content . y cnt = cnt . container return pygame . Rect ( x , y , self . rect . w , self . rect . h )