(Agreeing with you but adding relevant information)
Hitler did come to power after trying to lead a (potentially) violent coup Mussolini-style (but it was stopped, in part due to incompetence of the nazis) and his trial for that gave him a platform on the world stage that increased his popularity. And then he wrote Mein Kampf while in prison.