It has to go after the mainloop(), otherwise you print it before tkinter runs, i.e
root.mainloop() print Menu.valueNote that classes use UpperCase and variables use lower_case_with_underscores. You should also state that you are using Python2.X, which is the exception, as Python3 is what most people are using (Python2 reaches end of life in 2020).