once you have set of component classes coded as framesany parent will work-both other frames and brand-newtop-level windows example - attaches instances of all four demo bar objects to their own independent toplevel windowsinstead of the same container example - pp \gui\tour\demoall-win py "" demo classes in independent top-level windowsnot processeswhen one is quit all others go awaybecause all windows run in the same process heremake tk(first hereelse we get blank default window ""from tkinter import demomodules ['demodlg''demoradio''democheck''demoscale'def makepopups(modnames)demoobjects [for modname in modnamesmodule __import__(modnamewindow toplevel(demo module demo(windowwindow title(module __name__demoobjects append(demoreturn demoobjects import by name string make new window parent is the new window def allstates(demoobjects)for obj in demoobjectsif hasattr(obj'report')print(obj __module__end='obj report(root tk(make explicit root first root title('popups'demos makepopups(demomoduleslabel(roottext='multiple toplevel window demo'bg='white'pack(button(roottext='states'command=lambdaallstates(demos)pack(fill=xroot mainloop(we met the toplevel class earlierevery instance generates new window on your screen the net result is captured in figure - each demo runs in an independent window of its own instead of being packed together in single display tkinter tourpart