original_docstring: Draws self and calls draw on children
docstring: Draws self and calls draw on children
docstring_tokens: Draws self and calls draw on children
code: def draw(self):
          """Draws self and calls draw on children"""
          if not self.screen:
              return
  
          pygame.draw.rect(self.screen, self.color,
                           (self.pos[0], self.pos[1], self.size[0], self.size[1]), 0)
  
          for child in self.children:
              if child.is_active:
                  child.draw()
code_tokens: def draw ( self ) : if not self . screen : return pygame . draw . rect ( self . screen , self . color , ( self . pos [ 0 ] , self . pos [ 1 ] , self . size [ 0 ] , self . size [ 1 ] ) , 0 ) for child in self . children : if child . is_active : child . draw ( )
short_docstring: Draws self and calls draw on children
short_docstring_tokens: Draws self and calls draw on children
comment: """Draws self and calls draw on children"""