There is nothing the user can do with Figure 8-7’s dialog but press OK. If No is clicked
in Figure 8-6’s quit verification dialog, a showinfo call creates the pop up in Fig-
ure 8-8 instead. Finally, if the Spam button is clicked in the main window, the standard
dialog captured in Figure 8-9 is generated with the standard showerror call.
Figure 8-8. dlg1 showinfo dialog
Figure 8-9. dlg1 showerror dialog
All of this makes for a lot of window pop ups, of course, and you need to be careful not
to rely on these dialogs too much (it’s generally better to use input fields in long-lived
Figure 8-7. dlg1 showwarning dialog
428 | Chapter 8: A tkinter Tour, Part 1