How to Solve NameError: name 'ImageTk' is not defined

Solution: Import the 'ImageTk' module

To Solve the error, add the following line to the top of your code.

import ImageTk

 

For more information:
Python ImageTk