parameters: (self, items)
docstring: Clear and add new menus to the MenuBar from a list of (menu, label) items.
docstring_summary: Clear and add new menus to the MenuBar from a list of (menu, label) items.
docstring_tokens: Clear and add new menus to the MenuBar from a list of ( menu label ) items .
function: def SetMenus(self, items):
          """Clear and add new menus to the MenuBar from a list of (menu, label) items. """
          for i in range(self.GetMenuCount()-1, -1, -1):
              self.Remove(i)
          for m, l in items:
              self.Append(m, l)
function_tokens: def SetMenus ( self , items ) : for i in range ( self . GetMenuCount ( ) - 1 , - 1 , - 1 ) : self . Remove ( i ) for m , l in items : self . Append ( m , l )