for master window use withdraw, not destroy.
You will have to capture exit so that you can manually destroy at end
for example, my code add line 11:
You will have to capture exit so that you can manually destroy at end
for example, my code add line 11:
import tkinter as tk class DynamicWindows: def __init__(self, parent): parent.title('Parent window') parent.geometry('300x300+500+500') self.startx = 10 self.starty = 10 self.all_windows = [] parent.withdraw()see: http://effbot.org/zone/tkinter-window-destroy.htm for destroy