Why or how does resizeable() solve my “two tk” problem
问题 Like many others, I suffered from seeing an 'extra window' titled 'tk'. None of the answers helped, until I stumbled on the solution shown below: import tkinter as tk root = tk.Tk() root.geometry('500x500') ########### Comment out to see the 'two tk' problem root.resizable(width=False, height=False) ########### button = tk.Button(root) button["text"]= 'X' button.pack() root.mainloop() I'm running under OSX 10.15.2, with Python 3.8. Any ideas? I appreciate it might just be my system, but I am