this script creates the window shown in figure - when run as standalone programit' bar of demo buttons that simply route control back to the values of the table in the module dialogtable when pressed figure - demodlg main window notice that because this script is driven by the contents of the dialogtable module' dictionarywe can change the set of demo buttons displayed by changing just dialogtable (we don' need to change any executable code in demodlgalso note that the quit button here is an attached instance of the quitter class of the prior section whose frame is repacked to stretch like the other buttons as needed here--it' at least one bit of code that you never have to write again this script' class also takes care to pass any **options constructor configuration keyword arguments on to its frame superclass though not used herethis allows callers to pass in configuration options at creation time (demo( = ))instead of configuring after the fact config( = )this isn' strictly requiredbut it makes the demo class work just like normal tkinter frame widget (which is what subclassing makes itafter allwe'll see how this can be used to good effect later we've already seen some of the dialogs triggered by this demo bar window' other buttonsso 'll just step through the new ones here pressing the main window' query buttonfor examplegenerates the standard pop up in figure - this askquestion dialog looks like the askyesno we saw earlierbut actually it returns either string "yesor "no(askyesno and askokcancel return true or false instead-trivial but truepressing the demo bar' input button generates the standard ask float dialog box shown in figure - dialogs