How to Solve NameError: name 'OptionMenu' is not defined -- tkinter
Solution: Import the 'OptionMenu' module
To Solve the error, add the following line to the top of your code.
from tkinter import OptionMenu
For more information:
Python tkinter OptionMenu