nowthe next scheduled stop on this tour explores one of the more common uses of top-level windows dialogs dialogs are windows popped up by script to provide or request additional information they come in two flavorsmodal and nonmodalmodal these dialogs block the rest of the interface until the dialog window is dismissedusers must reply to the dialog before the program continues nonmodal these dialogs can remain on-screen indefinitely without interfering with other windows in the interfacethey can usually accept inputs at any time regardless of their modalitydialogs are generally implemented with the toplevel window object we met in the prior sectionwhether you make the toplevel or not there are essentially three ways to present pop-up dialogs to users with tkinter--by using common dialog callsby using the now-dated dialog objectand by creating custom dialog windows with toplevels and other kinds of widgets let' explore the basics of all three schemes standard (commondialogs because standard dialog calls are simplerlet' start here first tkinter comes with collection of precoded dialog windows that implement many of the most common pop ups programs generate--file selection dialogserror and warning pop upsand question and answer prompts they are called standard dialogs (and sometimes common dialogsbecause they are part of the tkinter libraryand they use platform-specific library calls to look like they should on each platform tkinter file open dialogfor instancelooks like any other on windows all standard dialog calls are modal (they don' return until the dialog box is dismissed by the user)and they block the program' main window while they are displayed scripts can customize these dialogswindows by passing message texttitlesand the like since they are so simple to uselet' jump right into example - (coded as pyw file here to avoid shell pop up when clicked in windowsexample - pp \gui\tour\dlg pyw from tkinter import from tkinter messagebox import def callback()if askyesno('verify''do you really want to quit?')showwarning('yes''quit not yet implemented' tkinter tourpart