make a method
the Entry widget cannot be same as StringVar
also you have some indentation issues.
and you will have to alter code above (set zz = to new StringVar nane), and textvariable part of entry.
def set_lower(self, event): zz.set(self.wordld.get().lower()) # replace line 6 with self.world.bind("<KeyRelease>", set_lower)there are other issues here:
the Entry widget cannot be same as StringVar
also you have some indentation issues.
and you will have to alter code above (set zz = to new StringVar nane), and textvariable part of entry.