original_docstring: Creates a menu and sorts it horizontally with existing ones
docstring: Creates a menu and sorts it horizontally with existing ones
docstring_tokens: Creates a menu and sorts it horizontally with existing ones
code: def add_menu(self, text='', command=None):
          """Creates a menu and sorts it horizontally with existing ones"""
          child_size = self.get_child_size()
          menu = Menu(self, self.screen, (255, 178, 102),
                      self.pos.copy(), child_size, text=text, highlight_color=(255, 204, 153), click_color=(255, 229, 204), command=command)
  
          menu.pos[0] = self.pos[0] + len(self.children) * child_size[0]
  
          self.children.append(menu)
          return menu
code_tokens: def add_menu ( self , text = '' , command = None ) : child_size = self . get_child_size ( ) menu = Menu ( self , self . screen , ( 255 , 178 , 102 ) , self . pos . copy ( ) , child_size , text = text , highlight_color = ( 255 , 204 , 153 ) , click_color = ( 255 , 229 , 204 ) , command = command ) menu . pos [ 0 ] = self . pos [ 0 ] + len ( self . children ) * child_size [ 0 ] self . children . append ( menu ) return menu
short_docstring: Creates a menu and sorts it horizontally with existing ones
short_docstring_tokens: Creates a menu and sorts it horizontally with existing ones
comment: """Creates a menu and sorts it horizontally with existing ones"""