After the death of Joseph Lyons he was elected leader of the United Australia Party and became Prime Minister in 1939 . His first term as Prime Minister commenced in 1939 , after the death in office of the United Australia Party leader Joseph Lyons and a short-term interim premiership by Sir Earle Page .