lower raise and lower window with respect to its siblings (lift is the tk raise commandbut avoids python reserved wordsee the alarm scripts near the end of for usage menus each top-level window can have its own window menus tooboth the tk and the toplevel widgets have menu option used to associate horizontal menu bar of pull-down option lists this menu bar looks as it should on each platform on which your scripts are run we'll explore menus early in most top-level window-manager-related methods can also be named with "wm_at the frontfor instancestate and protocol can also be called wm_state and wm_protocol notice that the script in example - passes its toplevel constructor calls an explicit parent widget--the tk root window (that istoplevel(root)toplevels can be associated with parent just as other widgets caneven though they are not visually embedded in their parents coded the script this way to avoid what seems like an odd featureif coded instead like thiswin toplevel(new window and if no tk root yet existsthis call actually generates default tk root window to serve as the toplevel' parentjust like any other widget call without parent argument the problem is that this makes the position of the following line crucialroot tk(explicit root if this line shows up above the toplevel callsit creates the single root window as expected but if you move this line below the toplevel callstkinter creates default tk root window that is different from the one created by the script' explicit tk call you wind up with two tk roots just as in example - move the tk call below the toplevel calls and rerun it to see what mean you'll get fourth window that is completely emptyas rule of thumbto avoid such odditiesmake your tk root windows early on and make them explicit all of the top-level protocol interfaces are available only on top-level window widgetsbut you can often access them by going through other widgetsmaster attributes--links to the widget parents for exampleto set the title of window in which frame is containedsay something like thistheframe master title('spam demo'master is the container window naturallyyou should do so only if you're sure that the frame will be used in only one kind of window general-purpose attachable components coded as classesfor instanceshould leave window property settings to their client applications top-level widgets have additional toolssome of which we may not meet in this book for instanceunder unix window managersyou can also set the name used on the window' icon (iconnamebecause some icon options may be useful when scripts run top-level windows