Question: What can I do to prevent toplevels from appearing in Tkinter? It outputs like this: Answer: a is the Toplevel so a.destroy() If you have better answer, please add a comment about this, thank you! ...