Python Tkinter Not Working When I Code In A Function Stack Overflow

Python Tkinter Not Working When I Code In A Function Stack Overflow