I understand that at one time prime ministers were appointed by monarchs. Then, with the supremacy of parliament, they were elected from among their peers in the House of Common. At what historical occasion did this change take place? Was it the Glorious Revolution? If not, then when? Thanks.