def add_tools_to_container(container, tools=default_toolbar_tools):
 for (group, grouptools) in tools:
  for (position, tool) in enumerate(grouptools):
   container.add_tool(tool, group, position)

def add_tools_to_container ( container , tools = default_toolbar_tools ) : for ( group , grouptools ) in tools : for ( position , tool ) in enumerate ( grouptools ) : container . add_tool ( tool , group , position )
add multiple tools to the container .