First window: Tk()
Every Tkinter app starts by creating Tk. That is the root window. Without it, you have nowhere to put buttons. Usually there is only one Tk per app. For a second window (e.g. a dialog), use Toplevel.
Every Tkinter app starts by creating Tk. That is the root window. Without it, you have nowhere to put buttons. Usually there is only one Tk per app. For a second window (e.g. a dialog), use Toplevel.