def METHOD_NAME(entries, parent=None):
    """Create a toolbutton.
    Args:
        entries: List of (label, slot) tuples.
    Returns:
        `QtWidgets.QToolBar`.
    """
    btn = QtWidgets.QToolButton(parent)
    menu = QtWidgets.QMenu()
    actions = []
    for label, slot in entries:
        action = add_menu_action(menu, label, slot)
        actions.append(action)
    btn.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
    btn.setDefaultAction(actions[0])
    btn.setMenu(menu)
    return btn, actions