I am completely new to Python 3, just following simple exercises from YouTube.
https://www.youtube.com/watch?v=nefopNkZmB4&index=3&list=PL6gx4Cwl9DGAcbMi1sH6
Because of the indentation, display = StringVar()
is not in a method. That means it is getting executed when the class is first defined. You cannot create an instance of StringVar
until after the root window has been created.
You need to add one more level of indentation for that line, and the line below it.