The Scottish Labour leader was the first major party figure to call for the prime minister to quit.