How to auto-activate a tkinter simpledialog pop-up window?
问题 I have this function inside one of my python scripts which throws up a Tkinter simple dialog screen to ask for some simple user-input. The function works. However, there are 2 problems with it. It opens up two windows, while all I need is one. But if I remove the master = Tk() I get the error: AttributeError: 'NoneType' object has no attribute 'winfo_viewable' It would be nice to at one point figure that one out, but my main problem however is the second one: Whenever the simple dialog screen