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