How many years was "The Wizard of Oz" a Broadway musical before the MGM movie version was made?

How many years was "The Wizard of Oz" a Broadway musical before the MGM movie version was made?